joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a087
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov esi, 0x10596c0
push esi
push ebx
push dword [ebp + 8]
mov edi, 0x100
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100a166
inc dword [ebp - 4]
cmp dword [ebp - 8], 1
je 0x100a0e5
cmp dword [ebp - 8], 2
je 0x100a0e5
cmp dword [ebp - 8], 7
je 0x100a0e5
xor eax, eax
jmp 0x100a0e8
push 2
pop eax
mov ecx, dword [ebp - 0xc]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100a138
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
call fcn.0100a001
test eax, eax
jne 0x100a12a
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 8]
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100a12d
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100a13b
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100a0cc
cmp dword [ebp - 0x10], ebx
je 0x100a1cc
push edi
mov esi, 0x10598c0
push esi
mov dword [ebp - 4], ebx
push ebx
jmp 0x100a1bf
inc dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
push 9
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a1ba
jmp 0x1068770
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x100a173
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100aa93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1059684]
cmp eax, dword [0x105968c]
push esi
push edi
jne 0x100ab61
cmp dword [0x10190e4], 1
lea eax, [ebp - 4]
push 0
push eax
jne 0x100aaee
push 0x10000
push 0x1039680
push dword [0x1059680]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100aae4
mov dword [0x1019678], 0x82
jmp 0x100ab6e
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x100ab1e
mov edi, 0x10000
push edi
mov esi, 0x1019680
push esi
push dword [0x1059680]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100aad5
push edi
push 0x1039680
push dword [ebp - 4]
push esi
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x1059690]
and dword [0x1059684], 0
mov dword [0x105968c], eax
mov eax, dword [ebp - 4]
add dword [0x1059694], eax
test ecx, ecx
je 0x100ab4b
mov eax, dword [0x1059694]
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x100ab4e
push 0x64
pop eax
cmp dword [0x1059698], eax
je 0x100ab61
push eax
mov dword [0x1059698], eax
call fcn.01006c9b
mov eax, dword [0x1059684]
cmp eax, dword [0x105968c]
jl 0x100ab72
xor eax, eax
jmp 0x100ab89
mov ax, word [eax*2 + 0x1039680]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
inc dword [0x1059684]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x100ac0f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
push 9
push 0x110a
jmp loc.01067640

Function at 0x100accc
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1059684]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x100ad57
cmp dword [0x10190dc], 4
jne 0x100ad24
push esi
push edi
push edi
push 0x20000
mov esi, 0x1019680
push esi
push eax
push 0x1039680
push edi
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [0x1059680]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
je 0x100ad4d
cmp ebx, dword [ebp - 4]
jmp 0x100ad4b
push edi
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push 0x1039680
push dword [0x1059680]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100ad4d
mov eax, dword [0x1059684]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x100ad57
mov dword [0x1019678], 0x8d
mov dword [0x1059684], edi
pop edi
pop ebx
leave
ret
Function at 0x100bbd4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1019214]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 9
push 0x110a
push dword [0x1019080]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, esi
mov dword [ebp - 0x258], eax
mov dword [0x1019678], 0x88
je 0x100bc42
push esi
push ebx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.01005586
push eax
call fcn.0100a8f2
test eax, eax
je 0x100bc42
mov dword [0x1019678], 0x89
jmp 0x100bd63
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1059680], eax
je 0x100bd49
push esi
lea ecx, [ebp - 0x260]
push ecx
push 2
push 0x1001a54
push eax
mov dword [0x1059684], esi
mov dword [0x1059688], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001a58
call fcn.0100b3fa
push 0x1001be8
call fcn.0100b3fa
push 0x1001a98
call fcn.0100b3fa
push 0x1001be0
call fcn.0100b3fa
cmp ebx, esi
je 0x100bcd1
push ebx
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
jmp 0x100bd31
push dword [ebp - 0x258]
call fcn.01005586
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x258], eax
push 0x1001b44
lea eax, [ebp - 0x254]
push eax
call edi
lea eax, [ebp - 0x254]
push eax
push eax
push dword [ebp - 0x258]
call fcn.0100a7ea
push eax
call fcn.0100b953
push 0x1001b2c
jmp 0x10673e8
call fcn.0100b953
call fcn.0100accc
push dword [0x1059680]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100bd53
mov dword [0x1019678], 0x8a
cmp ebx, esi
je 0x100bd63
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010167d4
leave
ret 8
Function at 0x100e1d9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1019214]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [0x1019098], edi
mov dword [ebp - 0x218], eax
je 0x100e3a0
push ebx
mov dword [ebp - 0x20c], 1
push esi
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push dword [0x10190c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push edi
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call fcn.0100a001
test eax, eax
mov ebx, dword [ebp + 0xc]
push 3
pop esi
jne 0x100e297
inc dword [ebp - 0x20c]
cmp dword [ebp - 0x20c], 0x64
jb 0x100e210
cmp dword [ebp - 0x20c], 0x64
jne 0x100e306
mov eax, 0xaa
push 0x10
movzx eax, ax
push 0xa8
push eax
push dword [ebp - 0x218]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x14
jmp 0x100e39e
cmp ebx, edi
jbe 0x100e2bf
push 2
pop ecx
cmp ebx, ecx
jbe 0x100e2b2
cmp ebx, esi
je 0x100e2fe
push 4
pop eax
cmp ebx, eax
je 0x100e2f0
cmp ebx, 7
jne 0x100e2bf
mov word [ebp - 0x210], di
mov dword [ebp - 0x208], ecx
push dword [ebp - 0x208]
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100e261
mov eax, 0xa9
jmp 0x100e273
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x208], eax
jmp 0x100e2bf
mov dword [ebp - 0x208], edi
jmp 0x100e2bf
push edi
push edi
push 0x1004
push dword [0x1019084]
mov dword [ebp - 0x24c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x204]
mov dword [ebp - 0x238], eax
call esi
cmp ebx, 1
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], edi
je 0x100e352
cmp ebx, 2
je 0x100e352
cmp ebx, 7
mov dword [ebp - 0x230], 5
jne 0x100e35c
mov dword [ebp - 0x230], 4
lea eax, [ebp - 0x24c]
push eax
push edi
push 0x104d
push dword [0x1019084]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x100e39e
push ebx
push dword [ebp - 0x208]
lea eax, [ebp - 0x210]
push eax
push esi
push dword [0x1019084]
call fcn.0100df5e
push esi
push dword [0x1019084]
call fcn.0100db24
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.010167d4
leave
ret 8

Function at 0x100e724
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1019214]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [0x1019084]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1032
push edi
mov dword [ebp - 0x20c], eax
call esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x34
push 0x34
movzx eax, ax
push 0x33
push eax
push dword [ebp - 0x20c]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x14
cmp eax, 6
jne 0x100e875
push ebx
push ebx
push 0xb
push edi
call esi
or dword [ebp - 0x208], 0xffffffff
push 2
jmp loc.010685e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010167d4
leave
ret 4
Function at 0x1016bad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10024e8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1016c05
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100213a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1016bf8
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1016c07
xor eax, eax
pop esi
leave
ret 4

Function at 0x414ddd
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [edx], ecx
add edx, 4
sub eax, 0xf712e726
cmp edx, esi
jne fcn.00414ddd
dec edi
push edi
mov eax, dword [esp]
add esp, 4
ret
Function at 0x4012b0
Capabilities:
Encode data using xor

Disassembly:
push 0x4013b0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
pushal
add byte [eax], al
add byte [eax], al
add byte [eax], al
cmp byte [eax - 0x10], dl
xor al, 0x92
sbb edx, ebx
dec eax
sahf
jne 0x4012bc
jns 0x401315
fdiv dword [edi - 0x50]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
and byte [ebx + 0x6d], ah
push edx
push ebx
popal
arpl word [ebx + 0x68], sp
popal
jb 0x401363
push 0x63696d75
add byte [ecx], ch
or eax, 0x696e6f47
popal
je 0x40136c
je 0x40136a
and byte [ebp + 0x73], al
jb 0x40136e
imul esi, dword [ecx + ebp*2 + 0x6e], 0x6c65206f
popal
popal
popal
outsb dx, byte [si]
jne 0x40138d
add byte [ecx], ah
add byte [eax], al
add byte [esi], al
add byte [eax], al
add byte [ebx + eax*2 + 0x40], dl
add byte [edi], al
add byte [eax], al
add byte [eax], ch
aas
inc eax
add byte [edi], al
add byte [eax], al
add al, dl
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x700403e], al
add byte [eax], al
add byte [esi + edi], dh
inc eax
add byte [edi], al
add byte [eax], al
add ah, dl
cmp eax, 0x70040
add byte [eax], al
cmp byte [0x70040], 0
add byte [edi + 0x500040], ah
add byte [eax], al
iretd
add bh, cl
xchg dword [ebx - 0x49], eax
popal
retf
call 0xdc2fa5b0
jne 0x401349
xchg edx, eax
out dx, eax
invalid
and dword [edi], ebx
mov bl, 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add byte [eax], al
or eax, dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edi], cl
or al, 0
add byte [eax], al
add byte [eax], al
add byte [eax + 0x4d], ch
inc eax
add byte [eax + eax], cl
add byte [esi + 0x42], dl
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax - 0x3ffbfdd], ah
adc eax, 0xf03f0040
xor byte [eax], al
add bh, bh
invalid
Function at 0x205c83
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x2117b0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00211452
Function at 0x100185d
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, esp
lea eax, [edi + 0xc]
mov ebp, ebp
push esi
mov esi, dword [edi + 8]
push ebp
mov ebp, dword [edi + 0xc]
push eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWab.exe
push 0x80000002
mov dword [edi + 0xc], ebp
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x100189d
push ebp
push 0x1001404
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop ebp
pop esi
pop edi
ret 8

Function at 0x10018a8
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov eax, dword [0x10060b0]
mov ebp, esp
add esp, 0xfffffdec
push esi
xor esi, esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001260
push 0x80000000
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
or eax, eax
jne 0x1001a38
cmp dword [ebp - 0x214], 1
jne 0x1001a38
push ebx
mov ebx, 0x1001268
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x1001a36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001278
push 0x80000000
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001a36
push 0x1001288
call edi
push eax
push 0x1001288
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
or eax, eax
jne 0x1001a36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001294
push 0x80000000
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
or eax, eax
jne 0x1001a36
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100185d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x10012b8
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x108]
sub esp, 0xfffffff0
push eax
call edi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
or eax, eax
jne 0x1001a36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], esi
pop edi
pop ebx
cmp dword [ebp - 0x210], esi
pop esi
je 0x1001a4d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.01004a2f
leave
ret
Function at 0x10026e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov edi, edi
mov eax, dword [0x10060b0]
mov ebp, esp
sub esp, 0x114
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
je 0x10027b9
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push 0x1001418
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x10027a5
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x1001417
push dword [ebp - 0x10c]
mov dword [ebp - 0x114], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10027a5
cmp dword [ebp - 0x110], 2
lea eax, [ebp - 0x108]
jne 0x1002788
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x114], eax
jmp 0x10027a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10027a5
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x10c], ebx
je 0x10027b9
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01004a2f
leave
ret 8
Function at 0x1003353
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.010049bc
jmp fcn.010032cf

Function at 0x1004348
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ebx, ebx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
je 0x1004409
cmp dword [ebp + 0x10], edi
je 0x1004409
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x100438d
mov dword [ebp - 4], 0x80040116
jmp 0x10043fd
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10043a6
mov dword [ebp - 4], 0x80040116
jmp 0x10043f5
push ebx
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x10043bf
mov dword [ebp - 4], 0x8007000e
jmp 0x10043f4
lea eax, [ebp - 8]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10043dc
mov dword [ebp - 4], 0x80040116
jmp 0x10043f4
cmp esi, dword [ebp - 8]
je 0x10043ea
mov dword [ebp - 4], 0x80004005
jmp 0x10043f4
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop ebx
mov eax, dword [ebp + 8]
cmp eax, edi
pop esi
je 0x1004404
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x100440e
mov eax, 0x80070057
pop edi
leave
ret 0xc
Function at 0x4084c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d948
cmp edx, dword [eax]
je 0x4084eb
add eax, 8
inc ecx
cmp eax, 0x40d9d8
jl 0x4084dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d948]
jne 0x408619
mov eax, dword [0xf0c7a8]
cmp eax, 1
je 0x4085f3
test eax, eax
jne 0x40851c
cmp dword [0x40d274], 1
je 0x4085f3
cmp edx, 0xfc
je 0x408619
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408553
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004053f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408596
lea eax, [ebp - 0x1a4]
push eax
call fcn.004053f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c484
push edi
call fcn.00405ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405310
lea eax, [ebp - 0xa0]
push 0x40c464
push eax
call fcn.00405310
push dword [esi + 0x40d94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a693
add esp, 0x2c
pop edi
jmp 0x408619
lea eax, [ebp + 8]
lea esi, [esi + 0x40d94c]
push 0
push eax
push dword [esi]
call fcn.004053f0
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

Function at 0x8e0fac
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e0fb2
pop ebp
sub ebp, 6
sub ebp, 0x4e0fac
jmp 0x8e1010
jmp 0x8e1019
mov eax, 0x4e0fac
add eax, ebp
add eax, 0x93
mov ecx, 0x61d
mov edx, 0x1270a8ef
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1030
jmp 0x8e1043
test dword [edi - 0x10001079], ebp
out dx, eax
xchg edi, ebp
and eax, ebx
out dx, eax
fsubr qword [edi]
mov edi, 0xbed37a10
stosd dword es:[edi], eax
out dx, eax
mov edi, 0x66642264
shr edi, cl
out dx, eax
out dx, eax
outsb dx, byte [esi]
pop ss
out dx, eax
out dx, eax
out dx, eax
in al, dx
and dl, byte [edi - 0x17]
out dx, eax
out dx, eax
out dx, eax
push ebp
invalid