joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d0490
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
push edi
mov ecx, 0x400
push esi
push ebx
mov esi, 0x100d6800
sub esp, 0x24
mov ebx, dword [esp + 0x38]
lea eax, [ebx + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edx, 4
xor eax, eax
xor edi, edi
mov ebp, dword [esp + 0x3c]
shl eax, 8
movzx ebp, byte [ebp + ecx]
inc ecx
or eax, ebp
cmp ecx, dword [esp + 0x40]
cmovge ecx, edi
dec edx
jne 0x100d04b7
xor eax, dword [esi + 0x100d7800]
mov dword [ebx + esi], eax
add esi, 4
cmp esi, 0x48
jne 0x100d04ae
lea eax, [ebx + 0x48]
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov esi, ebx
mov ebp, ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
add ebp, 8
mov dword [esp + 8], eax
call sym.avutil_56.dll_av_blowfish_crypt_ecb
mov eax, dword [esp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [esp + 0x20]
mov dword [ebp - 4], eax
cmp dword [esp + 0x10], ebp
jne 0x100d0500
lea eax, [ebx + 0x1000]
mov dword [esp + 0x10], eax
xor ebp, ebp
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym.avutil_56.dll_av_blowfish_crypt_ecb
mov eax, dword [esp + 0x1c]
mov dword [esi + ebp*4 + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esi + ebp*4 + 0x4c], eax
add ebp, 2
cmp ebp, 0x100
jne 0x100d053f
add esi, 0x400
cmp dword [esp + 0x10], esi
jne 0x100d053d
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100d18d8
Capabilities:
Hash data using ripemd320
Hash data using sha1

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, edx
sar ecx, 5
cmp edx, 0xa0
mov byte [eax], cl
je 0x100d198d
jg 0x100d1926
add edx, 0xffffff80
jne 0x100d1a09
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x78], 0x10044700
jmp 0x100d19f8
cmp edx, 0x100
je 0x100d19b9
cmp edx, 0x140
jne 0x100d1a09
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
mov dword [eax + 0x64], 0x76543210
mov dword [eax + 0x68], 0xfedcba98
mov dword [eax + 0x6c], 0x89abcdef
mov dword [eax + 0x70], 0x1234567
mov dword [eax + 0x74], 0x3c2d1e0f
mov dword [eax + 0x78], 0x10048300
jmp 0x100d19f8
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
mov dword [eax + 0x78], 0x10046740
jmp 0x100d19f8
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0x76543210
mov dword [eax + 0x64], 0xfedcba98
mov dword [eax + 0x68], 0x89abcdef
mov dword [eax + 0x6c], 0x1234567
mov dword [eax + 0x78], 0x100456e0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
xor eax, eax
ret
mov eax, 0xffffffea
ret

Function at 0x100d1a10
Capabilities:
Hash data using sha1
Hash data using sha224
Hash data using sha256

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, edx
sar ecx, 5
cmp edx, 0xe0
mov byte [eax], cl
je 0x100d1a6a
cmp edx, 0x100
je 0x100d1aab
cmp edx, 0xa0
jne 0x100d1afb
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
mov dword [eax + 0x70], 0x1004b210
jmp 0x100d1aea
mov dword [eax + 0x50], 0xc1059ed8
mov dword [eax + 0x54], 0x367cd507
mov dword [eax + 0x58], 0x3070dd17
mov dword [eax + 0x5c], 0xf70e5939
mov dword [eax + 0x60], 0xffc00b31
mov dword [eax + 0x64], 0x68581511
mov dword [eax + 0x68], 0x64f98fa7
mov dword [eax + 0x6c], 0xbefa4fa4
mov dword [eax + 0x70], 0x1004c2d0
jmp 0x100d1aea
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
mov dword [eax + 0x70], 0x1004c2d0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
xor eax, eax
ret
mov eax, 0xffffffea
ret
Function at 0x100d1b04
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, edx
sar ecx, 6
cmp edx, 0x100
mov byte [eax], cl
je 0x100d1c93
jg 0x100d1bd6
cmp edx, 0xe0
jne 0x100d1de9
mov dword [eax + 0x90], 0x19544da2
mov dword [eax + 0x94], 0x8c3d37c8
mov dword [eax + 0x98], 0x89dcd4d6
mov dword [eax + 0x9c], 0x73e19966
mov dword [eax + 0xa0], 0x32ff9c82
mov dword [eax + 0xa4], 0x1dfab7ae
mov dword [eax + 0xa8], 0x582f9fcf
mov dword [eax + 0xac], 0x679dd514
mov dword [eax + 0xb0], 0x7bd44da8
mov dword [eax + 0xb4], 0xf6d2b69
mov dword [eax + 0xb8], 0x4c48942
mov dword [eax + 0xbc], 0x77e36f73
mov dword [eax + 0xc0], 0x6a1d36c8
mov dword [eax + 0xc4], 0x3f9d85a8
mov dword [eax + 0xc8], 0x91d692a1
mov dword [eax + 0xcc], 0x1112e6ad
jmp 0x100d1dd8
cmp edx, 0x180
je 0x100d1d38
cmp edx, 0x200
jne 0x100d1de9
mov dword [eax + 0x90], 0xf3bcc908
mov dword [eax + 0x94], 0x6a09e667
mov dword [eax + 0x98], 0x84caa73b
mov dword [eax + 0x9c], 0xbb67ae85
mov dword [eax + 0xa0], 0xfe94f82b
mov dword [eax + 0xa4], 0x3c6ef372
mov dword [eax + 0xa8], 0x5f1d36f1
mov dword [eax + 0xac], 0xa54ff53a
mov dword [eax + 0xb0], 0xade682d1
mov dword [eax + 0xb4], 0x510e527f
mov dword [eax + 0xb8], 0x2b3e6c1f
mov dword [eax + 0xbc], 0x9b05688c
mov dword [eax + 0xc0], 0xfb41bd6b
mov dword [eax + 0xc4], 0x1f83d9ab
mov dword [eax + 0xc8], 0x137e2179
mov dword [eax + 0xcc], 0x5be0cd19
jmp 0x100d1dd8
mov dword [eax + 0x90], 0xfc2bf72c
mov dword [eax + 0x94], 0x22312194
mov dword [eax + 0x98], 0xc84c64c2
mov dword [eax + 0x9c], 0x9f555fa3
mov dword [eax + 0xa0], 0x6f53b151
mov dword [eax + 0xa4], 0x2393b86b
mov dword [eax + 0xa8], 0x5940eabd
mov dword [eax + 0xac], 0x96387719
mov dword [eax + 0xb0], 0xa88effe3
mov dword [eax + 0xb4], 0x96283ee2
mov dword [eax + 0xb8], 0x53863992
mov dword [eax + 0xbc], 0xbe5e1e25
mov dword [eax + 0xc0], 0x2c85b8aa
mov dword [eax + 0xc4], 0x2b0199fc
mov dword [eax + 0xc8], 0x81c52ca2
mov dword [eax + 0xcc], 0xeb72ddc
jmp 0x100d1dd8
mov dword [eax + 0x90], 0xc1059ed8
mov dword [eax + 0x94], 0xcbbb9d5d
mov dword [eax + 0x98], 0x367cd507
mov dword [eax + 0x9c], 0x629a292a
mov dword [eax + 0xa0], 0x3070dd17
mov dword [eax + 0xa4], 0x9159015a
mov dword [eax + 0xa8], 0xf70e5939
mov dword [eax + 0xac], 0x152fecd8
mov dword [eax + 0xb0], 0xffc00b31
mov dword [eax + 0xb4], 0x67332667
mov dword [eax + 0xb8], 0x68581511
mov dword [eax + 0xbc], 0x8eb44a87
mov dword [eax + 0xc0], 0x64f98fa7
mov dword [eax + 0xc4], 0xdb0c2e0d
mov dword [eax + 0xc8], 0xbefa4fa4
mov dword [eax + 0xcc], 0x47b5481d
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
xor eax, eax
ret
mov eax, 0xffffffea
ret
Function at 0x100d1df0
Capabilities:
Encrypt data using twofish

Disassembly:
cmp ecx, 4
push edi
mov edi, edx
push esi
push ebx
jne 0x100d1e3e
movzx ebx, byte [eax]
movzx esi, byte [eax + 1]
mov ecx, dword [edx + 0xc]
mov dl, cl
xor dl, byte [ebx + 0x100ea060]
movzx ebx, ch
xor bl, byte [esi + 0x100ea160]
movzx esi, byte [eax + 2]
mov byte [eax], dl
mov byte [eax + 1], bl
mov ebx, ecx
shr ecx, 0x18
shr ebx, 0x10
xor bl, byte [esi + 0x100ea160]
mov byte [eax + 2], bl
movzx ebx, byte [eax + 3]
xor cl, byte [ebx + 0x100ea060]
mov byte [eax + 3], cl
jmp 0x100d1e43
cmp ecx, 2
jle 0x100d1e85
movzx ebx, byte [eax]
movzx esi, byte [eax + 1]
mov ecx, dword [edi + 8]
mov dl, cl
xor dl, byte [ebx + 0x100ea060]
movzx ebx, ch
xor bl, byte [esi + 0x100ea060]
movzx esi, byte [eax + 2]
mov byte [eax], dl
mov byte [eax + 1], bl
mov ebx, ecx
shr ecx, 0x18
shr ebx, 0x10
xor bl, byte [esi + 0x100ea160]
mov byte [eax + 2], bl
movzx ebx, byte [eax + 3]
xor cl, byte [ebx + 0x100ea160]
mov byte [eax + 3], cl
movzx ebx, byte [eax]
mov ecx, dword [edi + 4]
mov dl, cl
xor dl, byte [ebx + 0x100ea160]
movzx ebx, dl
movzx esi, byte [ebx + 0x100ea160]
movzx ebx, byte [edi]
xor ebx, esi
movzx esi, byte [eax + 1]
mov bl, byte [ebx + 0x100ea060]
mov byte [eax], bl
movzx ebx, ch
xor bl, byte [esi + 0x100ea060]
movzx ebx, bl
movzx esi, byte [ebx + 0x100ea160]
mov ebx, dword [edi]
movzx ebx, bh
xor ebx, esi
movzx esi, byte [eax + 2]
mov bl, byte [ebx + 0x100ea160]
mov byte [eax + 1], bl
mov ebx, ecx
shr ecx, 0x18
shr ebx, 0x10
xor bl, byte [esi + 0x100ea160]
movzx ebx, bl
movzx esi, byte [ebx + 0x100ea060]
movzx ebx, byte [edi + 2]
xor ebx, esi
mov bl, byte [ebx + 0x100ea060]
mov byte [eax + 2], bl
movzx ebx, byte [eax + 3]
mov edx, dword [edi]
xor cl, byte [ebx + 0x100ea060]
shr edx, 0x18
pop ebx
pop esi
pop edi
movzx ecx, cl
movzx ecx, byte [ecx + 0x100ea060]
xor edx, ecx
mov dl, byte [edx + 0x100ea160]
mov byte [eax + 3], dl
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x24dc43a1
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x59d839b0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100024d7
Capabilities:
Delete file

Disassembly:
mov eax, 0x1000ce09
call fcn.10007e5c
sub esp, 0x440
lea ecx, [ebp - 0x14]
call fcn.10001000
and dword [ebp - 4], 0
push 1
call fcn.1000218b
pop ecx
push 0
call fcn.1000218b
pop ecx
call fcn.1000348f
test eax, eax
je 0x100025e1
lea ecx, [ebp - 0x448]
call fcn.10006893
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x22]
imul eax, eax, 0x1f
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov dword [ebp - 0x44c], eax
push 0x10010508
lea ecx, [ebp - 0x14]
call fcn.10001581
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x1000257b
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x1000257b
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x448]
call fcn.10006989
push str.HKEY_LOCAL_MACHINESOFTWAREClassesCLSID0E5CBF21_D15F_11d0_8301_00AA005B4
lea ecx, [ebp - 0x14]
call fcn.10001581
push str.383InProcServer32_
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x448]
call fcn.10006989
push 0x1001058c
push str.QDZQ
lea ecx, [ebp - 0x448]
call fcn.10006962
push 0
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x448]
call fcn.10006d57
and byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.1000690f
push 0x10011a20
lea ecx, [ebp - 0x14]
call fcn.10001549
push str.iprep
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105a4
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x10002626
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10011a20
lea ecx, [ebp - 0x14]
call fcn.10001549
push 0x100105ac
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105b0
lea ecx, [ebp - 0x14]
call fcn.100017f8
push str.date
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105bc
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026d0
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026d0
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026d0
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026d0
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026d0
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026d0
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100010fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10002ec2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
and dword [ebp - 0x54], 0
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
cmp dword [ebp + 0xc], 0
je 0x10002eeb
mov dword [ebp - 0x4c], str.WinSta0Default
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
leave
ret
Function at 0x10004844
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10004865
xor eax, eax
jmp 0x100048bc
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100048a7
xor eax, eax
jmp 0x100048bc
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x100048b9
xor eax, eax
jmp 0x100048bc
push 1
pop eax
leave
ret
Function at 0x100048be
Capabilities:
Get file size
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov dword [ebp - 0x158], 1
cmp dword [ebp + 0xc], 0
jne 0x100048de
xor eax, eax
jmp 0x10004af9
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x1000499c
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x1000499c
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10004976
mov eax, dword [ebp - 0x154]
cmp eax, dword [0x10010098]
je 0x10004989
push 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
je 0x10004990
and dword [ebp - 0x158], 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x158], 0
jne 0x100049af
cmp dword [ebp + 0x14], 0
je 0x10004af6
and dword [ebp - 0x16c], 0
cmp dword [0x10011aa0], 0
je 0x10004a2a
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x10011aa0]
je 0x10004a2a
push dword [ebp + 0x10]
call fcn.10007000
pop ecx
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x10004a28
and dword [ebp - 0x170], 0
jmp 0x100049f8
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
cmp eax, dword [ebp + 0x10]
jae 0x10004a28
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x170]
movzx eax, byte [eax]
movzx ecx, byte [0x100119c8]
xor eax, ecx
mov ecx, dword [ebp - 0x16c]
add ecx, dword [ebp - 0x170]
mov byte [ecx], al
jmp 0x100049eb
jmp 0x10004a33
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x10004a43
xor eax, eax
jmp 0x10004af9
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x10004adb
push 0
push 0
push 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x16c]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x10010098]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x16c]
je 0x10004af6
push dword [ebp - 0x16c]
call fcn.10006fb8
pop ecx
xor eax, eax
jmp 0x10004af9
push 1
pop eax
leave
ret
Function at 0x100051fa
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1000d159
call fcn.10007e5c
sub esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.10001000
and dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x100052f0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100052e7
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x10010098]
jne 0x100052e7
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a18], eax
push dword [0x10011a18]
call fcn.10007000
pop ecx
mov dword [0x10011a98], eax
cmp dword [0x10011a94], 0
je 0x100052e7
push 0
lea eax, [ebp - 0x34]
push eax
push dword [0x10011a18]
push dword [0x10011a98]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100052b6
cmp dword [ebp - 0x34], 0x64
jae 0x100052e7
push dword [0x10011a98]
call fcn.10006fb8
pop ecx
and dword [0x10011a98], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x38], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100010fa
mov eax, dword [ebp - 0x38]
jmp 0x10005306
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10006d57
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x64
mov dword [ebp - 8], 1
push str.DWORD
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.1000687d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006d8f
xor eax, eax
jmp 0x10006e4b
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006de0
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10006de0
xor eax, eax
jmp 0x10006e4b
cmp dword [ebp + 0xc], 0
je 0x10006e13
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006e11
and dword [ebp - 8], 0
jmp 0x10006e3c
push 4
push dword [ebp + 8]
push 4
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006e3c
and dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x10006e4f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x10006ea0
push 1
pop eax
jmp 0x10006ea2
xor eax, eax
leave
ret
Function at 0x1000b925
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10011148
cmp edx, dword [eax]
je 0x1000b947
add eax, 8
inc ecx
cmp eax, 0x100111d8
jl 0x1000b938
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10011148]
jne 0x1000ba75
mov eax, dword [0x10011b04]
cmp eax, 1
je 0x1000ba4f
test eax, eax
jne 0x1000b978
cmp dword [0x10011b08], 1
je 0x1000ba4f
cmp edx, 0xfc
je 0x1000ba75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000b9af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007f30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10006eb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000b9f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.10006eb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000e570
push edi
call fcn.10009480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007f30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007f40
lea eax, [ebp - 0xa0]
push 0x1000e550
push eax
call fcn.10007f40
push dword [esi + 0x1001114c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007f40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000c3c5
add esp, 0x2c
pop edi
jmp 0x1000ba75
lea eax, [ebp + 8]
lea esi, [esi + 0x1001114c]
push 0
push eax
push dword [esi]
call fcn.10006eb0
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