joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
push esi
mov esi, dword [esp + 0x810]
push edi
push esi
call fcn.0040b3f0
add esp, 4
test eax, eax
jge 0x40b2e8
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x808
ret
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0x20]
push edi
push ecx
call fcn.00409cf0
add esp, 0xc
test eax, eax
jge 0x40b30d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x808
ret
push esi
call fcn.0040b9c0
add esp, 4
cmp eax, 1
je 0x40b334
mov edx, dword [esi + 4]
push edi
push edx
call fcn.0040a320
add esp, 8
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x808
ret
xor ecx, ecx
mov eax, ecx
cdq
mov edi, 5
idiv edi
mov eax, esi
sub eax, edx
mov dl, byte [eax + 0x28]
xor byte [esp + ecx + 0x10], dl
inc ecx
cmp ecx, 0x800
jl 0x40b336
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x40b3b2
dec eax
je 0x40b374
xor eax, eax
add esi, 0x29
mov ecx, eax
mov dword [esi], ecx
pop edi
mov byte [esi + 4], al
pop esi
add esp, 0x808
ret
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x14]
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], cl
call fcn.0040c310
add esp, 8
test eax, eax
je 0x40b3cf
xor eax, eax
mov dword [esi + 0x1c], 2
add esi, 0x29
mov ecx, eax
mov dword [esi], ecx
pop edi
mov byte [esi + 4], al
pop esi
add esp, 0x808
ret
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040c070
add esp, 8
test eax, eax
je 0x40b3cf
mov dword [esi + 0x1c], 2
mov ecx, dword [esp + 8]
mov al, byte [esp + 0xc]
add esi, 0x29
mov dword [esi], ecx
mov byte [esi + 4], al
pop edi
xor eax, eax
pop esi
add esp, 0x808
ret
Function at 0x40b5f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
xor ebp, ebp
test eax, eax
push edi
je 0x40b6f2
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40b61c
cmp eax, 1
jne 0x40b6f2
push esi
call fcn.0040b3f0
add esp, 4
test eax, eax
jge 0x40b634
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ebx
lea edi, [esi + 0x20]
push edi
push ecx
call fcn.00409e10
add esp, 0x10
test eax, eax
jge 0x40b651
or ebp, 0xffffffff
push esi
call fcn.0040b9c0
add esp, 4
cmp eax, 0xffffffff
je 0x40b6c5
cmp eax, 1
jne 0x40b675
test ebp, ebp
jge 0x40b679
mov edx, dword [esi + 4]
push edi
push edx
call fcn.0040a320
add esp, 8
test ebp, ebp
jl 0x40b6d2
xor ecx, ecx
nop
lea esp, [esp]
mov eax, ecx
cdq
mov edi, 5
idiv edi
mov bl, byte [esp + ecx + 0x10]
mov eax, esi
sub eax, edx
mov dl, byte [eax + 0x28]
xor bl, dl
mov byte [esp + ecx + 0x10], bl
inc ecx
cmp ecx, edi
jl 0x40b680
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x14]
mov bl, byte [esp + 0x12]
or al, cl
mov ecx, dword [esp + 0x10]
or al, bl
or al, ch
or al, cl
jne 0x40b74d
xor eax, eax
jmp 0x40b7b5
mov eax, dword [esi + 4]
push edi
push eax
call fcn.0040a320
add esp, 8
push 0
push esi
call dword [esi + 0x10]
push 1
push 0x42cca0
push esi
call dword [esi + 0x14]
push 0
push esi
call dword [esi + 0x10]
push esi
call fcn.0040b2c0
add esp, 0x20
mov edi, dword [esi + 0x48]
cmp edi, 0x400
lea ebp, [edi + ebx - 0x400]
jg 0x40b706
mov ebp, ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push esi
call fcn.0040c7f0
add esp, 0x14
test eax, eax
jg 0x40b7b1
cmp ebp, ebx
je 0x40b7b1
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, ebx
cmp edx, edi
jge 0x40b7b1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add ebx, eax
cmp ebx, ebp
jle 0x40b765
mov ebx, ebp
mov edi, 0x400
jmp 0x40b771
lea ecx, [esp + 0x10]
push ecx
add esi, 0x29
push esi
call fcn.0040c2f0
add esp, 8
mov eax, 1
jmp 0x40b7b1
sub edi, eax
cmp ebx, ecx
jge 0x40b771
sub ecx, ebx
add ebx, ecx
sub edi, ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push esi
call fcn.0040c7f0
add esp, 0x14
test eax, eax
jg 0x40b7b1
cmp ebp, ebx
je 0x40b7b1
mov edx, dword [esp + 0x1c]
sub edx, ebx
cmp edx, edi
jge 0x40b7b1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x400
push ebp
push esi
call fcn.0040c7f0
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
pop edi
pop esi
mov dword [edx], ecx
mov cl, byte [esp + 0xc]
pop ebp
mov byte [edx + 4], cl
pop ebx
add esp, 8
ret
Function at 0x40cf5a
Capabilities:
Create thread

Disassembly:
mov eax, 0x420390
call fcn.0041ef20
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x40cfba
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [esi + 4], eax
call fcn.004015fd
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40cfdb
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40cfba
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004015fd
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40d1c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
push dword [edi + 0xc]
mov dword [ebp + 8], esi
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call sub.msvcrt.dll_strlen
add eax, 3
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], ebx
je 0x40d2d1
mov esi, 0x42b944
push esi
push ebx
call sub.msvcrt.dll__mbscpy
push dword [ebp + 8]
push ebx
call sub.msvcrt.dll__mbscat
push esi
push ebx
call sub.msvcrt.dll__mbscat
mov esi, dword [sym.imp.shell32.dll_ShellExecuteA]
mov ebx, dword [sym.imp.user32.dll_GetDesktopWindow]
add esp, 0x18
cmp dword [edi + 8], 0
jne 0x40d2a0
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.shell32.dll_FindExecutableA]
cmp eax, 0x20
mov dword [ebp - 0xc], eax
jg 0x40d283
push 5
push str.http:
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40d27d
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.shell32.dll_FindExecutableA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
jle 0x40d2a0
push 1
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
push str.open
call ebx
push eax
call esi
cmp eax, 0x20
jg 0x40d2b6
push 1
push 0x42c0ec
push 0
push dword [ebp + 8]
push str.open
call ebx
push eax
call esi
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
push edi
call esi
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40d2da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x10
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x40d362
push dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll__mbsdup]
call edi
push dword [ebp + 0xc]
mov dword [esi], eax
call edi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
test ecx, ecx
mov dword [esi + 4], eax
je 0x40d347
test eax, eax
je 0x40d345
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40d16f
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40d340
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40d364
test ecx, ecx
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x40d353
push ecx
call edi
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40d35e
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40d368
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
push str.tmp.htm
lea eax, [ebp - 0x208]
push eax
push 0x42aa64
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
and byte [ebp - 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.0040da34
add esp, 0x18
test eax, eax
pop esi
jne 0x40d3de
lea eax, [ebp - 0x104]
push 0x42b948
push eax
call dword [sym.imp.msvcrt.dll_fopen]
test eax, eax
pop ecx
pop ecx
jne 0x40d3d6
leave
ret
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0040d2da
add esp, 0x10
leave
ret

Function at 0x40d3f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 3
push dword [ebp + 8]
mov dword [ebp - 8], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x40d431
push 2
pop eax
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [ebp + 0x10]
sete al
leave
ret

Function at 0x40d4a5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
push edi
xor ebx, ebx
mov edi, 0x100
jmp 0x40d4fd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
inc ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x40d4fd
push 1
push str.DMACurrentlyUsed
push dword [ebp - 4]
call fcn.0040d3f6
add esp, 0xc
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x40d517
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40d4c0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40d512
Function at 0x40d8e0
Capabilities:
Query or enumerate registry key

Disassembly:
call fcn.0040d0af
test eax, eax
je 0x40d8ee
jmp fcn.0040d725
jmp fcn.0040d5ba

Function at 0x40d987
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40da30
push dword [ebp + 8]
call sub.msvcrt.dll_strlen
cmp eax, 2
pop ecx
jb 0x40da30
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strlen
add esp, 0x1c
cmp eax, 2
jne 0x40da06
cmp byte [ebp - 0x107], 0x3a
jne 0x40da30
lea eax, [ebp - 0x108]
push 0x42ba98
push eax
call sub.msvcrt.dll__mbscat
pop ecx
pop ecx
jmp 0x40da15
lea eax, [ebp + eax - 0x109]
cmp byte [eax], 0x5c
jne 0x40da15
and byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40da30
test al, 0x10
je 0x40da30
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40da5e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x103
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40dadb
cmp eax, esi
ja 0x40dadb
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll_strlen
cmp byte [ebp + eax - 0x105], 0x5c
pop ecx
je 0x40daad
lea eax, [ebp - 0x104]
push 0x42ba98
push eax
call sub.msvcrt.dll__mbscat
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push str.wininit.ini
lea eax, [ebp - 0x104]
push eax
push 0x42aa64
push esi
push edi
call dword [sym.imp.msvcrt.dll__snprintf]
and byte [edi + esi - 1], 0
add esp, 0x14
xor eax, eax
inc eax
pop edi
jmp 0x40dadd
xor eax, eax
pop esi
leave
ret

Function at 0x40dae0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_CopyFileA]
cmp eax, 1
jne 0x40db02
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
xor eax, eax
pop esi
ret
call fcn.0040d0af
test eax, eax
je 0x40db1a
push 5
push dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_MoveFileExA]
jmp 0x40db26
push dword [esp + 0xc]
push esi
call fcn.0040db34
pop ecx
pop ecx
test eax, eax
je 0x40db2f
push 2
pop eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x40dc9f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
and byte [ebx], 0
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40dcd1
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
jne 0x40dcd5
xor eax, eax
jmp 0x40dd2f
push edi
push esi
push 0
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dd24
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x42ba98
push edi
call sub.version.dll_VerQueryValueA
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x1c
push edi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dd34
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_3
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x40dd6e
push edi
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40ddb6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movsx eax, byte [ebp + 8]
push esi
push eax
lea eax, [ebp + 8]
push str._c:_
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov eax, dword [0x42d4d0]
xor esi, esi
add esp, 0xc
cmp eax, esi
jne 0x40ddff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x42d4d0], eax
je 0x40de3b
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 8]
push ecx
call eax
test eax, eax
je 0x40de3b
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40de27
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40de86
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
jmp 0x40de86
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40de8b
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
mov eax, dword [ebp - 8]
je 0x40de72
mov edx, eax
imul edx, dword [ebp - 4]
imul edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x40de86
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], esi
xor eax, eax
inc eax
jmp 0x40dea5
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40de97
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40dea3
mov dword [eax], esi
mov dword [eax + 4], esi
xor eax, eax
pop esi
leave
ret

Function at 0x40e2b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e2f2
xor ecx, ecx
inc ecx
cmp dword [ebp - 4], ecx
je 0x40e2f2
cmp dword [ebp - 4], 7
je 0x40e2f2
cmp dword [ebp - 4], 2
je 0x40e2f2
or eax, 0xffffffff
mov dword [esi + 8], ecx
pop esi
leave
ret 0xc

Function at 0x40e34b
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.kernel32.dll_lstrlen]
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x40e373
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx + 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
ret 8
Function at 0x40e816
Capabilities:
Parse pe header

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
cmp word [esi], 0x5a4d
push edi
jne 0x40e9e6
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40e845
push ebp
call dword [sym.imp.kernel32.dll_lstrlen]
cmp eax, 0x104
jge 0x40e9e6
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x40e9e6
cmp word [eax + 0x18], 0x10b
jne 0x40e9e6
mov ecx, dword [eax + 0x34]
mov edi, dword [eax + 0x50]
push ebp
mov dword [esp + 0x18], ecx
xor ebx, ebx
call fcn.0040e563
mov esi, eax
test esi, esi
pop ecx
jne 0x40e9bc
call fcn.0040d0af
test eax, eax
je 0x40e8fc
cmp ebp, esi
je 0x40e8a1
push ebp
push 1
push 2
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x10], esi
jne 0x40e8c7
push ebp
lea eax, [edi + 0x1000]
push eax
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x40e9e6
mov dword [esp + 0x10], 1
push dword [esp + 0x14]
mov ebp, dword [sym.imp.kernel32.dll_MapViewOfFileEx]
push esi
push esi
push esi
push 2
push ebx
call ebp
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x40e8ec
push eax
push eax
push eax
push eax
push 2
push ebx
call ebp
mov esi, eax
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
jne 0x40e933
jmp 0x40e9e6
mov ebp, dword [sym.imp.kernel32.dll_VirtualAlloc]
push 4
push 0x3000
push edi
push dword [esp + 0x20]
call ebp
mov esi, eax
test esi, esi
jne 0x40e92b
push 4
push 0x3000
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x40e9e6
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], 0
jne 0x40e940
cmp esi, dword [esp + 0x14]
je 0x40e965
push esi
push dword [esp + 0x20]
call fcn.0040e7c0
test eax, eax
pop ecx
pop ecx
jne 0x40e965
call fcn.0040d0af
test eax, eax
je 0x40e9d8
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
jmp 0x40e9e6
mov eax, dword [esp + 0x24]
test al, 2
jne 0x40e9b8
mov ecx, eax
shr ecx, 8
and ecx, 1
push ecx
not eax
and eax, 1
push eax
push edi
push esi
call fcn.0040e657
add esp, 0x10
test eax, eax
je 0x40e950
test byte [esp + 0x24], 1
jne 0x40e9a1
push 0
push edi
push esi
call fcn.0040ea98
add esp, 0xc
test eax, eax
je 0x40e950
mov eax, dword [esp + 0x24]
shr eax, 9
and eax, 1
push eax
push esi
call fcn.0040eac2
test eax, eax
pop ecx
pop ecx
je 0x40e950
mov ebp, dword [esp + 0x20]
push dword [esp + 0x24]
push ebp
push esi
call fcn.0040e9f3
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40e9ea
test ebx, ebx
je 0x40e9e6
jmp 0x40e950
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
jmp 0x40e9ec
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40ebce
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 0x10]
test bl, 8
push esi
push edi
jne 0x40ec27
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
push str..dll
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.kernel32.dll_SearchPathA]
test eax, eax
je 0x40ec27
push esi
push esi
push 3
push esi
push 1
push Ordinal_3
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ec2b
xor eax, eax
jmp 0x40ec87
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp + 0x10], eax
call edi
push esi
push esi
push esi
push 4
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x40ec80
test bh, 4
je 0x40ec65
and ebx, 0xfffffff7
push ebx
push esi
jmp 0x40ec6c
and ebx, 0xfffffff7
push ebx
push dword [ebp + 8]
push eax
call fcn.0040e816
add esp, 0xc
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push dword [ebp + 0x10]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ec9d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x40eccb
cmp word [esi], 0x5a4d
jne 0x40eccb
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x40eccb
cmp word [eax + 0x18], 0x10b
je 0x40eccf
xor eax, eax
jmp 0x40ed25
mov edi, dword [eax + 0x50]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0040ed29
mov ecx, eax
add esp, 0xc
xor eax, eax
cmp ecx, 0xffffffff
je 0x40ed25
inc eax
test byte [ebp + 8], 3
jne 0x40ed25
test ecx, ecx
je 0x40ed25
push eax
push edi
push esi
call fcn.0040ea98
add esp, 0xc
call fcn.0040d0af
test eax, eax
je 0x40ed17
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
jmp 0x40ed25
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
pop edi
pop esi
leave
ret