joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x419328], esi
je 0x403935
xor eax, eax
jmp 0x403a20
push dword [ebp + 8]
or dword [0x410b84], 0xffffffff
call fcn.00401da1
cmp eax, 0xfffffffd
pop ecx
jne 0x403990
or word [0x410ba0], 0xffff
mov word [0x410ba2], si
mov word [0x410ba4], si
mov word [0x410ba6], 0x7fff
mov dword [0x410ba8], esi
mov dword [0x410bac], esi
mov word [0x410bb0], si
mov dword [0x419328], 1
call fcn.004021b2
jmp 0x403a20
cmp eax, 0xfffffffc
jne 0x40399c
push 5
jmp 0x403a1d
cmp eax, 0xffffffff
je 0x403a1b
mov dword [0x410b84], eax
push esi
add eax, 4
push esi
push eax
push dword [0x410bc8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push esi
push eax
push 0x12
push 0x410ba0
push dword [0x410bc8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a14
cmp dword [ebp + 8], esi
je 0x403a14
cmp word [0x410ba0], si
mov dword [0x419328], 1
jne 0x403a1b
cmp word [0x410ba2], si
je 0x403a1e
mov ax, word [0x410ba4]
cmp ax, word [0x410ba6]
jne 0x403a1e
mov word [0x410ba0], si
mov word [0x410ba2], si
jmp 0x403a1e
or dword [0x410b84], 0xffffffff
push 3
pop esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404189
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x4109b0]
mov edx, 0xff
mov eax, ecx
push esi
xor eax, dword [esp + 8]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x40d3b8]
xor eax, ecx
mov ecx, dword [0x4109b8]
mov dword [0x4109b0], eax
and eax, edx
add eax, dword [0x4109b4]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x4109b4], eax
shr eax, 0x18
xor eax, esi
pop esi
shr ecx, 8
mov eax, dword [eax*4 + 0x40d3b8]
xor eax, ecx
mov dword [0x4109b8], eax
ret

Function at 0x40421c
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x40ff00], 0
push esi
mov esi, dword [esp + 8]
je 0x404254
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404254
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40424f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404254
push 0x1c
pop eax
pop esi
ret
push 0
push 0x8000020
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
dec ecx
mov dword [0x410bb8], eax
and ecx, 0xffffffe4
pop esi
add ecx, 0x1c
mov eax, ecx
ret
Function at 0x404285
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4109dc]
dec dword [0x4109dc]
push esi
push edi
test eax, eax
jle 0x4042e0
xor edi, edi
cmp dword [0x4109ec], edi
jne 0x404332
lea eax, [ebp - 4]
push edi
mov esi, 0x2800
push eax
push esi
push dword [0x4109e8]
push dword [0x410e04]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4042d4
mov eax, dword [ebp - 4]
and eax, 0xffff
jmp 0x4042d7
or eax, 0xffffffff
cmp eax, edi
mov dword [0x4109ec], eax
jg 0x4042e4
xor eax, eax
jmp 0x404350
add dword [0x419330], esi
mov ecx, dword [0x4109e8]
cmp dword [0x41007c], edi
mov dword [0x410bb4], ecx
je 0x404332
mov edx, dword [0x4109dc]
inc edx
cmp eax, edx
jle 0x40430b
mov eax, edx
mov esi, ecx
mov ecx, eax
dec eax
test ecx, ecx
je 0x404332
push ebx
lea edi, [eax + 1]
call fcn.00404173
mov ebx, eax
movzx eax, byte [esi]
xor ebx, eax
push ebx
call fcn.00404189
mov byte [esi], bl
inc esi
dec edi
pop ecx
jne 0x404318
pop ebx
mov eax, dword [0x410bb4]
mov ecx, dword [ebp + 8]
push 8
movzx ax, byte [eax]
mov word [ecx], ax
inc dword [0x410bb4]
dec dword [0x4109ec]
pop eax
pop edi
pop esi
leave
ret
Function at 0x404354
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x419324], esi
je 0x404389
mov eax, dword [0x410ce4]
mov dword [0x410ce4], esi
add dword [0x4190e8], eax
mov eax, dword [0x410ce8]
mov dword [0x4190f0], eax
push 0x32
jmp 0x40457b
mov edi, dword [0x410ce4]
cmp edi, esi
je 0x404590
mov edx, dword [0x40ff1c]
mov ecx, dword [0x410bc4]
cmp edx, esi
mov dword [ebp - 0x10], edi
jne 0x4043bd
mov eax, dword [0x410b4c]
lea ebx, [ecx + edi]
cmp ebx, eax
jle 0x4043bd
sub eax, ecx
mov dword [ebp - 0x10], eax
mov edi, eax
cmp edi, esi
jg 0x4043f2
cmp edx, esi
jne 0x4043d9
push 1
pop ebx
mov dword [0x40fefc], ebx
mov dword [0x40ff10], ebx
jmp 0x404489
mov dword [0x40fefc], 1
mov dword [0x419324], 2
jmp 0x404489
push edi
push dword [0x410ce8]
call fcn.004057c0
cmp dword [0x40ff64], esi
pop ecx
pop ecx
jne 0x4044f7
cmp dword [0x40ff1c], esi
jne 0x4044ff
cmp dword [0x4190f4], 0x4000
jne 0x4044bf
mov esi, dword [0x4190ec]
and dword [ebp - 0xc], 0
push 1
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 2], 0xd
mov byte [ebp - 1], 0xa
pop ebx
cmp dword [ebp - 0xc], 0
jne 0x404484
xor eax, eax
cmp byte [esi], 0xa
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 8]
push eax
jne 0x404463
lea eax, [ebp - 2]
push 2
push eax
jmp 0x404465
push ebx
push esi
push dword [0x410bb8]
call edi
test eax, eax
je 0x404477
cmp dword [ebp - 8], 0
ja 0x40447a
mov dword [ebp - 0xc], ebx
inc esi
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jg 0x404446
mov edi, dword [ebp - 0x10]
xor esi, esi
mov eax, dword [0x410ce4]
mov dword [0x410ce4], esi
add dword [0x4190e8], eax
mov eax, dword [0x410ce8]
cmp dword [0x40ff1c], esi
mov dword [0x4190f0], eax
je 0x40457e
mov eax, dword [0x40ff2c]
mov dword [0x410bc4], eax
jmp 0x404584
lea eax, [ebp - 8]
push esi
push eax
push edi
push dword [0x4190ec]
push dword [0x410bb8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4044e0
cmp dword [ebp - 8], edi
je 0x404489
cmp dword [0x40ff58], esi
jne 0x404489
mov dword [0x419324], 2
jmp 0x404382
cmp dword [0x40ff1c], esi
je 0x404489
mov eax, dword [0x40ff28]
mov edx, dword [0x40ff2c]
mov esi, dword [0x40ff20]
mov ecx, dword [0x4190ec]
add edx, eax
mov eax, dword [0x410b4c]
cmp eax, esi
jge 0x404529
sub eax, dword [0x40ff24]
mov esi, eax
mov eax, dword [0x40ff30]
cmp eax, dword [0x40ff24]
jl 0x404556
mov eax, dword [0x40ff2c]
cmp eax, dword [0x40ff20]
jge 0x4044e8
cmp eax, esi
jge 0x40456f
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
inc dword [0x40ff2c]
dec edi
jmp 0x404566
inc eax
cmp eax, dword [0x410b36]
mov dword [0x40ff30], eax
jge 0x40456f
dec edi
inc ecx
test edi, edi
jg 0x404529
jmp 0x404487
mov dword [0x419324], 3
push 2
pop eax
jmp 0x404592
add dword [0x410bc4], edi
push dword [0x410bc4]
call fcn.00403a55
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404597
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x410bb8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4045ba
push eax
call edi
or dword [0x410bb8], 0xffffffff
lea eax, [ebp - 0x10]
push eax
mov ax, word [0x410b2a]
push eax
mov ax, word [0x410b2c]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
xor eax, eax
mov esi, 0x419100
push eax
push 0x8000080
push 3
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404629
mov eax, dword [0x4109c8]
or al, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x4109d8]
mov edx, ecx
dec ecx
test edx, edx
je 0x4057ff
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 8]
push edi
xor edx, edx
mov edi, eax
mov dl, byte [ecx]
and edi, 0xff
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x40d3b8]
xor eax, edx
inc ecx
dec esi
jne 0x4057d9
pop edi
mov dword [0x4109d8], eax
pop esi
ret
mov dword [0x4109d8], eax
ret

Function at 0x407641
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d970
cmp edx, dword [eax]
je 0x407663
add eax, 8
inc ecx
cmp eax, 0x40da00
jl 0x407654
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d970]
jne 0x407791
mov eax, dword [0x4100dc]
cmp eax, 1
je 0x40776b
test eax, eax
jne 0x407694
cmp dword [0x40d7c4], 1
je 0x40776b
cmp edx, 0xfc
je 0x407791
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4076cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408ec0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004062e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40770e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004062e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b4f0
push edi
call fcn.00408d80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408ec0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408ed0
lea eax, [ebp - 0xa0]
push 0x40b4d0
push eax
call fcn.00408ed0
push dword [esi + 0x40d974]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408ed0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040923f
add esp, 0x2c
pop edi
jmp 0x407791
lea eax, [ebp + 8]
lea esi, [esi + 0x40d974]
push 0
push eax
push dword [esi]
call fcn.004062e0
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 0x10001224
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001239
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1000124b
xor eax, eax
jmp 0x1000127d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1000126f
cmp esi, eax
jae 0x10001247
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001261
cmp esi, eax
jae 0x10001247
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x100014ac
Capabilities:
Check os version

Disassembly:
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x100014ee
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x1000152a
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1000152a
push 4
push 0x1000
push dword [esp + 0x14]
push esi
push dword [esp + 0x18]
call eax
mov esi, eax
jmp 0x1000152a
cmp al, 4
jne 0x1000152a
push edi
push str.MDesk_Shared_Mem
push dword [esp + 0x14]
push esi
push 0x8000004
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, esi
je 0x10001529
push esi
push esi
push esi
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret

Function at 0x10002e7e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10013684
call fcn.1000af08
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x10002e9b
xor edi, edi
cmp byte [0x10019d20], bl
jne 0x10002f31
cmp dword [ebp + 8], ebx
push esi
jne 0x10002ec6
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.10002ce2
mov esi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x10002ee1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.10002bdb
mov esi, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 2
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.10002b2b
push 2
push ebx
push dword [esi]
push dword [eax]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.1000136a
test byte [ebp - 0x10], 2
pop esi
je 0x10002f20
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.1000136a
test byte [ebp - 0x10], 1
je 0x10002f31
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1000136a
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000313d
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1001369e
call fcn.1000af08
sub esp, 0x28
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp ecx, ebx
jne 0x10003156
xor ecx, ecx
cmp byte [0x10019d20], bl
je 0x10003165
mov al, 1
jmp 0x1000325c
push edi
lea eax, [ebp - 0x14]
push eax
mov byte [ebp + 0xb], bl
call fcn.10002b2b
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov edi, eax
call fcn.1000136a
cmp edi, 0xffffffff
je 0x10003258
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push ebx
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.100030e0
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x30]
mov dword [ebp - 0x10], ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp - 0x10]
jne 0x10003248
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [0x10018070]
mov byte [ebp - 4], 1
call fcn.1000a1f0
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.100030e0
push dword [ebp - 0x20]
push dword [0x10018070]
call fcn.1000a1f0
pop ecx
mov ecx, eax
mov eax, dword [str.9f8d1e2a]
add ecx, eax
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002164
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push esi
push dword [ebp - 0x30]
push eax
call fcn.10002a83
add esp, 0x24
cmp dword [ebp + 8], esi
lea ecx, [ebp - 0x24]
setne byte [ebp + 0xb]
call fcn.1000236c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.1000236c
pop esi
mov al, byte [ebp + 0xb]
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10003ba1
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
mov byte [ebp - 1], 0
je 0x10003bc0
push eax
call fcn.1000aa36
and dword [esi + 0xc], 0
pop ecx
cmp dword [ebp + 8], 0
je 0x10003cb6
push ebx
push edi
mov edi, 0x200
push edi
mov dword [ebp - 8], edi
call fcn.10009b06
mov ebx, eax
test ebx, ebx
pop ecx
je 0x10003cb4
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 0x7a
jne 0x10003c24
add dword [ebp - 8], edi
push dword [ebp - 8]
call fcn.10009b06
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x10003cad
push ebx
call fcn.1000aa36
mov ebx, dword [ebp - 0x10]
pop ecx
jmp 0x10003be5
test eax, eax
je 0x10003cad
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10003c9d
mov byte [eax + ebx], 0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10003c5a
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.10009b06
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
je 0x10003cad
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10003be5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 1]
push eax
call fcn.10009b06
mov edi, eax
test edi, edi
pop ecx
push dword [esi + 0xc]
je 0x10003ca3
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esi + 0xc]
call fcn.1000aa36
mov dword [esi + 0xc], edi
pop ecx
mov edi, 0x200
jmp 0x10003be5
mov byte [ebp - 1], 1
jmp 0x10003cad
call fcn.1000aa36
and dword [esi + 0xc], 0
pop ecx
push ebx
call fcn.1000aa36
pop ecx
pop edi
pop ebx
mov al, byte [ebp - 1]
pop esi
leave
ret 4
Function at 0x1000415f
Capabilities:
Create directory

Disassembly:
mov eax, dword [ecx + 0xc]
cmp dword [eax - 0xc], 0
je 0x10004186
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10004186
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
ret
mov al, 1
ret

Function at 0x10004a34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10013819
call fcn.1000af08
sub esp, 0x420
mov eax, dword [0x10018e70]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x10018074]
xor ebx, ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x10004adb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov edi, 0x400
cmp esi, edi
jg 0x10004abb
push esi
call fcn.10001000
test al, al
pop ecx
je 0x10004abb
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.10009f10
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10004ac7
push esi
lea ecx, [ebp - 0x420]
call fcn.10001970
push dword [ebp - 0x41c]
push esi
push dword [ebp + 8]
push eax
call fcn.10001155
cmp eax, ebx
jne 0x10004afe
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10004af4
lea ecx, [ebp - 0x418]
call fcn.10005e29
mov esi, 0x8007000e
jmp 0x10004c05
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x10004b1e
call fcn.10001324
mov esi, eax
jmp 0x10004bec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x10004b48
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x10004b52
call fcn.10001324
jmp 0x10004bde
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, edi
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x10004b83
push eax
lea ecx, [ebp - 0x418]
call fcn.10005e32
jmp 0x10004b96
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10004b96
cmp dword [ebp - 0x418], ebx
mov dword [ebp - 4], 1
jne 0x10004bac
mov esi, 0x8007000e
jmp 0x10004be0
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call fcn.1000a280
mov eax, dword [ebp - 0x418]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10004c3e
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10004c05
lea ecx, [ebp - 0x418]
call fcn.10005e29
lea ecx, [ebp - 0x420]
call fcn.1000166b
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10009f7e
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000589d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x10018e70]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.100057ce
cmp eax, esi
jne 0x10005925
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100058ee
lea eax, [ebp - 0x70]
push eax
call fcn.1000589d
cmp eax, esi
jne 0x10005924
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x100058e1
call fcn.100057b7
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.100057b7
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.10009f7e
add ebp, 0x94
leave
ret 4
Function at 0x10005d35
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10005d40
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x10009755
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10018e70]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.100096d7
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1000a030
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100097b7
cmp dword [ebp - 0x1c], 5
jb 0x100097cf
jmp 0x100097cb
cmp dword [ebp - 0x10], 1
jne 0x100097cf
cmp dword [ebp - 0x1c], 4
ja 0x100097cb
jne 0x100097cf
cmp dword [ebp - 0x18], 0
jbe 0x100097cf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10014a14
call fcn.100011d4
test eax, eax
jge 0x100097f0
mov byte [0x10019d34], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10009f7e
add ebp, 0x78
leave
ret

Function at 0x10009cd5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10009f10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009d70
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1001a088]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10009d70
cmp eax, 1
je 0x10009d91
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009d70
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10009d3d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009d6c
xor eax, eax
inc eax
jmp 0x10009db0
cmp edi, eax
jae 0x10009d74
xor eax, eax
jmp 0x10009db0
cmp eax, esi
jae 0x10009d7b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1001a088]
jmp 0x10009d94
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret