joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4216a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x14], edi
jne 0x413e7f
xor eax, eax
jmp 0x413e90
push eax
call dword [0x4221e8]
push eax
mov eax, dword [esi]
push eax
call dword [0x4221ec]
cmp dword [esi], edi
mov dword [ebp - 0x10], eax
je 0x413ea5
cmp eax, edi
jne 0x413ea5
push 0x8007000e
call fcn.00401140
mov esi, dword [0x42202c]
push str.WebServicesCommunicationCenter
mov dword [ebp - 4], edi
call esi
push eax
push str.WebServicesCommunicationCenter
lea ecx, [ebp - 0x10]
call fcn.00407480
cmp eax, edi
jge 0x413ecd
push eax
call fcn.00401140
mov ebx, dword [ebp - 0x10]
cmp ebx, edi
jne 0x413ed8
xor esi, esi
jmp 0x413f08
push ebx
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00417fe0
mov esi, esp
test esi, esi
je 0x413f08
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [0x422030]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push esi
push 0x80000001
mov dword [ebp - 0x10], 0
call dword [0x42200c]
test eax, eax
jne 0x413f56
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.DataState
push esi
mov dword [ebp + 8], edx
call dword [0x422004]
test esi, esi
je 0x413f5d
push esi
call dword [0x422010]
jmp 0x413f5d
mov dword [ebp - 0x14], 0x80004005
push ebx
call dword [0x4221f0]
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4216a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov byte [eax], 1
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x18], edi
jne 0x413fb5
xor eax, eax
jmp 0x413fc6
push eax
call dword [0x4221e8]
mov ecx, dword [esi]
push eax
push ecx
call dword [0x4221ec]
cmp dword [esi], edi
mov dword [ebp - 0x10], eax
je 0x413fdb
cmp eax, edi
jne 0x413fdb
push 0x8007000e
call fcn.00401140
mov esi, dword [0x42202c]
push str.WebServicesCommunicationCenter
mov dword [ebp - 4], edi
call esi
push eax
push str.WebServicesCommunicationCenter
lea ecx, [ebp - 0x10]
call fcn.00407480
cmp eax, edi
jge 0x414003
push eax
call fcn.00401140
mov ebx, dword [ebp - 0x10]
cmp ebx, edi
jne 0x41400e
xor esi, esi
jmp 0x414040
push ebx
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00417fe0
mov esi, esp
test esi, esi
je 0x41403e
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [0x422030]
xor edi, edi
lea edx, [ebp - 0x10]
push edx
push 0x20019
push edi
push esi
push 0x80000001
mov dword [ebp - 0x10], edi
call dword [0x42200c]
cmp eax, edi
jne 0x4140a8
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov dword [ebp - 0x14], edi
push str.EnableBubbleNotification
mov edi, 4
push esi
mov dword [ebp - 0x1c], edi
call dword [0x422008]
test eax, eax
jne 0x41409b
cmp dword [ebp - 0x10], edi
jne 0x41409b
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41409b
mov eax, dword [ebp + 8]
mov byte [eax], 0
test esi, esi
je 0x4140af
push esi
call dword [0x422010]
jmp 0x4140af
mov dword [ebp - 0x18], 0x80004005
push ebx
call dword [0x4221f0]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4140d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4216a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x14], edi
jne 0x4140ff
xor eax, eax
jmp 0x414110
push eax
call dword [0x4221e8]
push eax
mov eax, dword [esi]
push eax
call dword [0x4221ec]
cmp dword [esi], edi
mov dword [ebp - 0x10], eax
je 0x414125
cmp eax, edi
jne 0x414125
push 0x8007000e
call fcn.00401140
mov esi, dword [0x42202c]
push str.WebServicesCommunicationCenter
mov dword [ebp - 4], edi
call esi
push eax
push str.WebServicesCommunicationCenter
lea ecx, [ebp - 0x10]
call fcn.00407480
cmp eax, edi
jge 0x41414d
push eax
call fcn.00401140
mov ebx, dword [ebp - 0x10]
cmp ebx, edi
jne 0x414158
xor esi, esi
jmp 0x414188
push ebx
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00417fe0
mov esi, esp
test esi, esi
je 0x414188
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [0x422030]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push esi
push 0x80000001
mov dword [ebp - 0x10], 0
call dword [0x42200c]
test eax, eax
jne 0x4141dd
mov al, byte [ebp + 8]
mov esi, dword [ebp - 0x10]
xor edx, edx
push 4
test al, al
lea eax, [ebp + 8]
push eax
push 4
setne dl
push 0
push str.EnableBubbleNotification
push esi
mov dword [ebp + 8], edx
call dword [0x422004]
test esi, esi
je 0x4141e4
push esi
call dword [0x422010]
jmp 0x4141e4
mov dword [ebp - 0x14], 0x80004005
push ebx
call dword [0x4221f0]
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401af0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x401b0c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x401580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x401b34
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x407330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407349
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407384
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407380
lea ebx, [ebx]
cmp esi, eax
jae 0x407384
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407370
cmp esi, eax
jb 0x40738a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40ab6f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x414e88], 0
push esi
jne 0x40aae2
call fcn.0040aa0d
test eax, eax
je 0x40ab25
mov eax, dword [0x414e88]
cmp eax, 1
jne 0x40ab03
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40ab25
pop esi
ret
push eax
call dword [0x414e90]
test eax, eax
jne 0x40ab6d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40ab29
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x414e88]
call dword [0x414e90]
mov edi, eax
test edi, edi
je 0x40ab50
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40ab6c
lea edi, [esi + 0xff0]
push esi
push dword [0x414e88]
call dword [0x414e8c]
add esi, 0x10
cmp esi, edi
jb 0x40ab56
mov eax, esi
pop edi
pop esi
ret
jmp 0x40aacf
Function at 0x40ad5b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x414dd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040ac9a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40adaa
cmp dword [ebp - 0x1c], 5
jb 0x40adc2
jmp 0x40adbe
cmp dword [ebp - 0x10], 1
jne 0x40adc2
cmp dword [ebp - 0x1c], 4
ja 0x40adbe
jne 0x40adc2
cmp dword [ebp - 0x18], 0
jbe 0x40adc2
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40ec18
call fcn.004010e0
test eax, eax
jge 0x40ade3
mov byte [0x414df0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040bb1a
add ebp, 0x78
leave
ret

Function at 0x40bb1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414dd0]
jne 0x40bb24
repz ret
jmp fcn.0040c018
Function at 0x401070
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4010b9
push str.Unable_to_obtain_current_directory_during_crash_dump
call fcn.00401250
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
push esi
push str.minidump
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405548
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x416]
push eax
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x424]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x41e]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._wsdump__02d_02d_04d__02d_02d_02d_04d.dmp
push eax
call fcn.00401030
add esp, 0x28
lea eax, [ebp - 0x414]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40118c
lea eax, [ebp - 0x414]
push eax
push str.Failed_to_open_file_path__ws_while_generating_crash_dump
call fcn.00401250
add esp, 8
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x428], 0
movq qword [ebp - 0x430], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x430]
push eax
push 0
push esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x41e3a0]
test eax, eax
jne 0x4011f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump_failed._Error:__u
call fcn.00401250
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414198
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [0x41e3b8], ax
jne 0x40156d
xor ecx, ecx
jmp 0x401584
mov ecx, 0x41e3b8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401575
sub ecx, edx
sar ecx, 1
push ecx
push 0x41e3b8
lea ecx, [ebp - 0x28]
call fcn.00402fb0
push 0x5c
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00402ac0
cmp word [esi], 0
jne 0x4015af
xor ecx, ecx
jmp 0x4015c3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4015b4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402b80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4015f2
test al, 0x10
jne 0x4015f2
push 1
push esi
call sym.x32dbg.exe_LoadLibraryCheckedW
jmp 0x4015f9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [ebp - 0x14], 8
jb 0x40160a
push dword [ebp - 0x28]
call fcn.00405eed
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret 4
Function at 0x401800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41415b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
push 0x41e3b8
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401854
xor al, al
jmp 0x4019af
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [0x41e3b8], ax
jne 0x40187e
xor ecx, ecx
jmp 0x401895
mov ecx, 0x41e3b8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401886
sub ecx, edx
sar ecx, 1
push ecx
push 0x41e3b8
lea ecx, [ebp - 0x230]
call fcn.00402fb0
push 0x5c
push 0x41e3b8
mov dword [ebp - 4], 0
call fcn.00406a31
add esp, 8
test eax, eax
je 0x401994
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00407600
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.SetDefaultDllDirectories
push edi
call esi
push str.SetDllDirectoryW
push edi
mov dword [0x41e3b4], eax
call esi
push str.AddDllDirectory
push edi
mov dword [0x41e5c0], eax
call esi
cmp dword [0x41e3b4], 0
mov dword [0x41e5c4], eax
je 0x4019cb
mov ecx, dword [0x41e5c0]
test ecx, ecx
je 0x4019cb
test eax, eax
je 0x4019cb
push 0x415dbc
mov byte [0x41e3b1], 1
call ecx
test eax, eax
je 0x401994
push 0x41e3b8
call dword [0x41e5c4]
test eax, eax
je 0x401994
lea eax, [ebp - 0x218]
push eax
call dword [0x41e5c4]
test eax, eax
je 0x401994
push 0xc00
call dword [0x41e3b4]
test eax, eax
jne 0x401a37
xor bl, bl
cmp dword [ebp - 0x21c], 8
jb 0x4019ad
push dword [ebp - 0x230]
call fcn.00405eed
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push str.msasn1.dll
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], eax
call fcn.00401630
push str.cryptsp.dll
lea ecx, [ebp - 0x238]
call fcn.00401630
push str.cryptbase.dll
lea ecx, [ebp - 0x238]
call fcn.00401630
push str.wintrust.dll
lea ecx, [ebp - 0x238]
call fcn.00401630
push str.rsaenh.dll
lea ecx, [ebp - 0x238]
call fcn.00401630
push str.psapi.dll
lea ecx, [ebp - 0x238]
call fcn.00401630
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401f80
add esp, 8
mov byte [0x41e3b0], al
test al, al
je 0x401a7f
push str.msvcr120.dll
lea ecx, [ebp - 0x231]
call fcn.00401520
push str.msvcp120.dll
lea ecx, [ebp - 0x231]
call fcn.00401520
mov bl, 1
jmp 0x401996
Function at 0x401b20
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4141c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [0x41e3b8], ax
jne 0x401b6f
xor ecx, ecx
jmp 0x401b86
mov ecx, 0x41e3b8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b77
sub ecx, edx
sar ecx, 1
push ecx
push 0x41e3b8
lea ecx, [ebp - 0x28]
call fcn.00402fb0
cmp word [esi], 0
mov dword [ebp - 4], 0
jne 0x401ba5
xor ecx, ecx
jmp 0x401bbf
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401bb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402b80
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x401c0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401beb
test al, 0x10
je 0x401c0b
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 8
jb 0x401c04
push dword [ebp - 0x28]
call fcn.00405eed
add esp, 4
xor eax, eax
jmp 0x401cb2
cmp byte [0x41e3b0], 0
je 0x401c57
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00401f80
add esp, 8
test al, al
jne 0x401c57
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1010
cmovae eax, dword [ebp - 0x28]
push str.DLL_does_not_have_a_valid_signature
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x800b0100
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test bl, bl
jne 0x401c9f
test esi, esi
jne 0x401c9f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0x1010
cmovae ecx, dword [ebp - 0x28]
push str.DLL_not_found_
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x14], 8
jb 0x401cb0
push dword [ebp - 0x28]
call fcn.00405eed
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret 8
Function at 0x403d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], 8
lea edi, [edx + 1]
sub edx, ecx
lea eax, [ecx + 3]
mov dword [ebp + 8], edx
movzx ecx, byte [edi - 1]
lea eax, [eax + 4]
movzx esi, byte [eax - 7]
lea edi, [edi + 4]
movzx edx, byte [eax - 5]
xor esi, ecx
movzx ecx, byte [edi - 3]
xor edx, ecx
mov ecx, dword [ebp + 8]
or esi, edx
movzx edx, byte [ecx + eax - 4]
movzx ecx, byte [eax - 4]
xor edx, ecx
movzx ecx, byte [edi - 4]
or esi, edx
movzx edx, byte [eax - 6]
xor edx, ecx
or esi, edx
or ebx, esi
dec dword [ebp - 4]
jne 0x403d51
lea eax, [ebx - 1]
shr eax, 8
pop edi
and eax, 1
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
movzx eax, al
dec eax
mov dword [ebp - 0xc], 4
not eax
cdq
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
sub eax, ebx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp + 0xc], eax
jmp 0x403de0
xorps xmm0, xmm0
lea edx, [eax + ebx]
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
jmp 0x403e00
mov ecx, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
mov esi, dword [ebx + eax*8 + 4]
xor edx, esi
and edx, dword [ebp - 0x14]
mov edi, dword [ebx + eax*8]
xor esi, edx
xor ecx, edi
mov dword [ebx + eax*8 + 4], esi
and ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
xor edi, ecx
mov dword [ebx + eax*8], edi
xor dword [esi + eax*8 + 4], edx
mov edx, esi
xor dword [esi + eax*8], ecx
add eax, 1
adc dword [ebp - 8], 0
js 0x403e00
jg 0x403e3f
cmp eax, 0x10
jb 0x403e00
mov eax, dword [ebp + 0xc]
sub ebx, 0xffffff80
dec dword [ebp - 0xc]
jne 0x403de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
dec eax
movlpd qword [ebp - 0xc], xmm0
mov ecx, dword [ebp - 0xc]
not eax
push ebx
mov ebx, dword [ebp - 8]
cdq
push esi
push edi
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [eax + ecx*8 + 4]
mov edi, dword [eax + ecx*8]
mov eax, dword [edx + ecx*8]
mov edx, dword [edx + ecx*8 + 4]
xor eax, edi
and eax, dword [ebp + 0x10]
xor edx, esi
and edx, dword [ebp - 4]
xor edi, eax
mov dword [ebp - 8], eax
xor esi, edx
mov eax, dword [ebp + 8]
mov dword [eax + ecx*8], edi
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [edi + ecx*8 + 4], esi
mov esi, dword [ebp + 0xc]
xor dword [esi + ecx*8], eax
xor dword [esi + ecx*8 + 4], edx
add ecx, 1
adc ebx, 0
js 0x404c54
jg 0x404ca1
cmp ecx, 0x10
jb 0x404c54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret