joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057e5
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x38]
sub esp, 0x18
or eax, 4
test ecx, ecx
jne 0x4057fe
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea edx, [ebp - 0x18]
push edx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x405825
xor eax, eax
jmp 0x40587a
mov ecx, dword [ebp + 0x30]
xor eax, eax
test ecx, ecx
je 0x405832
mov dword [ebp - 8], ecx
inc eax
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40583e
mov dword [ebp + eax*4 - 8], ecx
inc eax
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004051a7
pop ecx
pop ecx
test eax, eax
je 0x405821
cmp dword [ebp + 0x2c], 0
je 0x405868
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x2c]
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test byte [ebp + 0x1c], 4
jne 0x405877
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
leave
ret 0x34
Function at 0x4014e0
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 0x4014f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401534
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401530
lea ebx, [ebx]
cmp esi, eax
jae 0x401534
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401520
cmp esi, eax
jb 0x40153a
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 0x4019c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x19
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401270
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.0042efdc
add esp, 0x210
ret

Function at 0x401a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x1a
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401270
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.0042efdc
add esp, 0x210
ret

Function at 0x401a60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0xb
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401270
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.0042efdc
add esp, 0x210
ret

Function at 0x401ab0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x26
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401270
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.0042efdc
add esp, 0x210
ret
Function at 0x405400
Capabilities:
Set registry value

Disassembly:
mov eax, dword [edi + 8]
push edi
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40545b
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
ret 8
push ebx
mov ebx, dword [esp + 0xc]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405465
push esi
mov esi, dword [esp + 0xc]
sub eax, edx
mov edx, dword [edi]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push ebx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
je 0x4054d2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov eax, 1
pop ebx
ret 8
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x405510
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44eef8
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x808], eax
push edi
mov eax, dword [0x469720]
xor eax, esp
push eax
lea eax, [esp + 0x814]
mov dword fs:[0], eax
push 0x7fe
lea eax, [esp + 0x16]
mov dword [esp + 0x820], 0
push 0
push eax
mov dword [esp + 0x14], 0x400
mov word [esp + 0x1c], 0
call fcn.004327a0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
add esp, 0xc
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4055c1
mov dword [esp + 0x81c], 0xffffffff
mov eax, dword [esp + 0x824]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4055b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x405665
mov edi, dword [esp + 0x824]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405615
lea eax, [edi - 0x10]
mov dword [esp + 0x81c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40560e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x405665
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405620
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00401620
lea eax, [edi - 0x10]
mov dword [esp + 0x81c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x814]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0042efdc
add esp, 0x818
ret 4

Function at 0x406220
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004327a0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x3c]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4062a6
mov edx, dword [esp + 0x3c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x3e7
pop esi
add esp, 0x3c
ret
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x44]
pop esi
add esp, 0x3c
ret
Function at 0x408f60
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fb90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x469720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0xa8]
sub eax, 0x10
push eax
call fcn.004011e0
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edx, 0xffffffff
cmp eax, 0x10
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
jne 0x408fd1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ff3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408ff3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fe4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xa8]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
call fcn.0040a870
cmp eax, ebx
jne 0x409029
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x457e68
call fcn.00401270
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x457e1c
call fcn.00401270
mov byte [ebp - 4], bl
call fcn.00407950
push edi
call fcn.0040a210
cmp al, bl
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
jne 0x409073
push 0x457e78
call fcn.00401270
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x457e1c
call fcn.00401270
mov byte [ebp - 4], bl
call fcn.00407950
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x457e88
call fcn.00401270
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x457e1c
call fcn.00401270
mov byte [ebp - 4], bl
call fcn.00407950
mov ecx, edi
call fcn.00409f90
cmp eax, ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
jne 0x4090ba
push str.Spenc1Y_
call fcn.00401270
mov byte [ebp - 4], 4
jmp 0x409047
push str.Spenc
call fcn.00401270
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x457e1c
call fcn.00401270
mov byte [ebp - 4], bl
call fcn.00407950
push edi
call fcn.00409510
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x457eb8
call fcn.00401270
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x457e1c
call fcn.00401270
mov byte [ebp - 4], bl
call fcn.00407950
mov ecx, edi
call fcn.00409340
movzx eax, al
cmp eax, ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
jne 0x409136
push 0x457ec8
call fcn.00401270
mov byte [ebp - 4], 7
jmp 0x409144
push 0x457ed8
call fcn.00401270
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x457e1c
call fcn.00401270
mov byte [ebp - 4], bl
call fcn.00407950
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409180
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44f720
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469720]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
call fcn.0040b2a0
xor ebx, ebx
mov ebp, 8
mov dword [esp + 0x5c], ebx
cmp dword [eax + 0x18], ebp
jb 0x4091c5
mov edx, dword [eax + 4]
jmp 0x4091c8
lea edx, [eax + 4]
sub esp, 0x1c
mov esi, esp
mov eax, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x34], esp
mov word [esi + 4], bx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4091e4
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00406370
mov byte [esp + 0x78], 1
call fcn.0040b460
mov esi, eax
mov byte [esp + 0x78], bl
call fcn.0040b7d0
or edi, 0xffffffff
mov dword [esp + 0x5c], edi
cmp dword [esp + 0x50], ebp
jb 0x409229
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041218b
add esp, 4
lea eax, [esp + 0x1c]
call fcn.0040b2d0
mov esi, eax
mov ecx, dword [esp + 0x64]
push 0x457ad4
add ecx, 0xa8
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x68], 2
call fcn.004056a0
add esp, 0xc
mov byte [esp + 0x5c], 3
cmp dword [esi + 0x18], ebp
jb 0x409268
mov esi, dword [esi + 4]
jmp 0x40926b
add esi, 4
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004056a0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40929e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], edi
cmp dword [esp + 0x34], ebp
jb 0x4092b5
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041218b
add esp, 4
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x14]
je 0x40930e
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x409307
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x409329
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x409327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4
Function at 0x409340
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44ee08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x469720]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push str.ServiceHelper.exe
add esi, 0xa8
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004056a0
push str.CaptureService.exe
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x38], 0
call fcn.004056a0
add esp, 0x18
mov byte [esp + 0x20], 1
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call esi
test eax, eax
je 0x4094a7
mov eax, dword [esp + 0xc]
push eax
call esi
test eax, eax
je 0x4094a7
push 0x457f38
lea ecx, [esp + 0x18]
call fcn.00401270
push 0x457f40
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00401270
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.00406220
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00406220
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409422
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40946c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409494
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x40ab90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x44ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x469720]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00418430
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x34]
push 0x458010
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ac29
push eax
push eax
push str.b_rN0RD
call fcn.00415310
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [esp + 0x30]
push 0x1001
push edi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00412dbc
push ebp
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.004124e1
lea ecx, [esp + 0x10]
call fcn.00412731
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004128a0
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
Function at 0x40e370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40e37f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40e467
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x459f00]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40e390
pop ebp
test edi, edi
je 0x40e48c
jmp 0x40e470
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x459f00]
add ecx, 1
sub edi, 1
jne 0x40e470
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40e4a0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x459f00]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x459f00]
mov dword [edx + 8], ecx
ret

Function at 0x40e4f0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x459f00]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x459f00]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x40ec60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40ec92
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ec88
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40eca5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004370a0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40ecc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40ecf3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40eced
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40ed1f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40ed05
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004370a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40ed36
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40ed30
cmp byte [esi + 8], 0
je 0x40ed30
or eax, 0xffffffff
add esp, 8
ret