joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1048b79
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x105f0e4
call fcn.0104dc64
push 0x1066af4
lea ecx, [ebp - 0x10]
call fcn.010442ec
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01031375
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.010466dd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0102fb3e
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.01047315
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0104e990
pop ecx
pop ecx
push 0xa
lea ecx, [ebp - 0x10]
call fcn.01048a5c
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
lea ecx, [esi - 0x10]
call fcn.0102fb3e
call fcn.0104dd50
ret

Function at 0x1048c52
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x105f0e4
call fcn.0104dc64
push 0x1002428
lea ecx, [ebp - 0x10]
call fcn.01048c0c
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01031375
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.010466dd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0102fb3e
cmp dword [ebp + 0xc], 0
je 0x1048cb1
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x1014a80
push eax
call fcn.01048b26
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.01047315
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x1014a74
push eax
call fcn.01048b26
push dword [ebp - 0x10]
push 0x2000000
call fcn.0104e990
add esp, 0x14
push 0xa
lea ecx, [ebp - 0x10]
call fcn.01048a5c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0102fb3e
call fcn.0104dd50
ret

Function at 0x1048d15
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x105f0e4
call fcn.0104dc64
push 0x1002428
lea ecx, [ebp - 0x10]
call fcn.01048c0c
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01031375
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.010466dd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0102fb3e
cmp dword [ebp + 0xc], 0
je 0x1048d74
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x1014a80
push eax
call fcn.01048b26
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.01047315
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x1014a88
push eax
call fcn.01048b26
push dword [ebp - 0x10]
push 0x2000000
call fcn.0104e990
add esp, 0x14
push 0xa
lea ecx, [ebp - 0x10]
call fcn.01048a5c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0102fb3e
call fcn.0104dd50
ret
Function at 0x1048dd8
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x105f0e4
call fcn.0104dc64
push 0x1002428
lea ecx, [ebp - 0x10]
call fcn.01048c0c
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01031375
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.010466dd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0102fb3e
cmp dword [ebp + 0xc], 0
je 0x1048e37
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x1014a80
push eax
call fcn.01048b26
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.01047315
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x1014a94
push eax
call fcn.01048b26
push dword [ebp - 0x10]
push 0x2000000
call fcn.0104e990
add esp, 0x14
push 0xa
lea ecx, [ebp - 0x10]
call fcn.01048a5c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0102fb3e
call fcn.0104dd50
ret

Function at 0x1048e9b
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x105f114
call fcn.0104dc64
push 0x1066af4
lea ecx, [ebp - 0x10]
call fcn.010442ec
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.01048c0c
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01047315
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0104e990
pop ecx
pop ecx
push 0xa
lea ecx, [ebp - 0x10]
call fcn.01048a5c
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
lea ecx, [esi - 0x10]
call fcn.0102fb3e
call fcn.0104dd50
ret
Function at 0x104c436
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
je 0x104c46c
mov ecx, dword [ebp + 0xc]
push esi
movzx esi, byte [ecx]
dec dword [ebp + 0x10]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10663b8]
inc ecx
cmp dword [ebp + 0x10], 0
jne 0x104c44a
pop esi
not eax
pop ebp
ret 0xc
Function at 0x104d610
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10667c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0104d551
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x104d683
cmp dword [ebp - 0x94], 5
jb 0x104d6a4
jmp 0x104d6a0
cmp dword [ebp - 0x88], 1
jne 0x104d6a4
cmp dword [ebp - 0x94], 4
ja 0x104d6a0
jne 0x104d6a4
cmp dword [ebp - 0x90], 0
jbe 0x104d6a4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10181d8
call fcn.0104d3c4
test eax, eax
jge 0x104d6c5
mov byte [0x10667f4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0104dc4f
leave
ret

Function at 0x104dc1d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1063f20
call fcn.0104e140
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1066fe8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x104da32
cmp eax, esi
jne 0x104da25
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x104da35
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x104da0c
xor esi, esi
inc esi
mov eax, dword [0x1066fe4]
cmp eax, esi
jne 0x104da48
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x104da83
mov eax, dword [0x1066fe4]
test eax, eax
jne 0x104da7d
mov dword [0x1066fe4], esi
push 0x10014ac
push 0x10014a0
call fcn.0104d989
pop ecx
pop ecx
test eax, eax
je 0x104da83
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x104db4d
mov dword [0x1066b64], esi
mov eax, dword [0x1066fe4]
cmp eax, esi
jne 0x104daa7
push 0x100149c
push 0x1001468
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1066fe4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x104dab4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1066ff4], ebx
je 0x104dad5
push 0x1066ff4
call fcn.0104e299
pop ecx
test eax, eax
je 0x104dad5
push ebx
push 2
push ebx
call dword [0x1066ff4]
push dword [0x1066b4c]
push dword [0x1066b50]
push dword [0x1066b48]
call fcn.0103261b
add esp, 0xc
mov dword [0x1066b60], eax
cmp dword [0x1066b54], ebx
jne 0x104db33
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1066b64], ebx
jne 0x104db41
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1066b60]
call fcn.0104e185
ret
call fcn.0104e3de
jmp 0x104d9ea
Function at 0x104e7d3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10667c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push ecx
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0104e75c
test eax, eax
jl 0x104e84e
cmp byte [ebp + 0xc], 0
je 0x104e841
push dword [ebp + 8]
call fcn.0104e60b
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1018494
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0104e798
add esp, 0x18
test eax, eax
jl 0x104e84e
lea eax, [ebp - 0x804]
jmp 0x104e847
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0104dc4f
leave
ret 0x10

Function at 0x104e862
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10667c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0104e75c
test eax, eax
jl 0x104e8dc
cmp byte [ebp + 0xc], 0
je 0x104e8cf
push dword [ebp + 8]
call fcn.0104e60b
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1018494
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0104e798
add esp, 0x18
test eax, eax
jl 0x104e8dc
lea eax, [ebp - 0x804]
jmp 0x104e8d5
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0104dc4f
leave
ret
Function at 0x104eb08
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x10667c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x24c
push esi
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x254], edi
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4a0]
push edi
push eax
mov dword [ebp - 0x4a4], edi
call sub.msvcrt.dll_memset
add esp, 0x18
push ebx
lea eax, [ebp - 0x4b0]
push eax
call fcn.0105ce90
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x104eb99
push ebx
push 0x1018768
push 1
push eax
push 0x4000000
call fcn.0104ea05
add esp, 0x14
jmp 0x104ed1b
push 0x1018744
lea eax, [ebp - 0x4b0]
push eax
call fcn.0105cbd0
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x104ebce
push 0x1018704
push 1
push eax
push 0x4000000
call fcn.0104ea05
add esp, 0x10
jmp 0x104ed1b
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b0]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b4], eax
cmp eax, 0xffffffff
je 0x104ed1b
test byte [ebp - 0x254], 0x10
jne 0x104ec2d
cmp ebx, edi
je 0x104ec17
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x104ec2c
mov ecx, 0x94
lea esi, [ebp - 0x254]
lea edi, [ebp - 0x4a4]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc ebx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x104ebf2
cmp ebx, 5
jbe 0x104ed0f
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x4ac]
push 0x1003e38
push eax
call fcn.0105cf86
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jl 0x104ecb9
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x104ecc3
push dword [ebp - 0x4b4]
dec ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4ac], edi
je 0x104ecae
push dword [ebp - 0x4ac]
call fcn.0105ca47
mov dword [ebp - 0x4ac], edi
cmp ebx, 5
ja 0x104ebce
jmp 0x104ed1b
push 0x10186d0
push 1
push eax
jmp 0x104ed02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jle 0x104ece3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], edi
jl 0x104ecf5
mov dword [ebp - 0x4a8], 0x80004005
push 0x10186a8
push 1
push dword [ebp - 0x4a8]
push 0x4000000
call fcn.0104ea05
add esp, 0x10
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4b0], edi
je 0x104ed2e
push dword [ebp - 0x4b0]
call fcn.0105ca47
cmp dword [ebp - 0x4ac], edi
pop edi
pop esi
pop ebx
je 0x104ed44
push dword [ebp - 0x4ac]
call fcn.0105ca47
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4a8]
xor ecx, ebp
call fcn.0104dc4f
leave
ret 4
Function at 0x105c908
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], edi
je 0x105c97c
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test byte [ebp + 0x10], 1
je 0x105c962
cmp eax, 2
je 0x105c94d
cmp eax, 3
jne 0x105c962
cmp eax, edi
jle 0x105c95b
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x105ca0c
cmp eax, edi
je 0x105c982
jle 0x105c972
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0xc]
push 0x102f028
jmp 0x105c9cc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test byte [ebp + 0x10], 1
je 0x105c9b4
cmp eax, 2
jne 0x105c9b4
mov ebx, 0x80070002
jmp 0x105ca0c
cmp eax, edi
je 0x105c9e0
jle 0x105c9c4
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0x14]
push 0x102f058
mov ebx, eax
push 1
push ebx
push 0x4000000
call fcn.0104ea05
add esp, 0x14
jmp 0x105ca0c
cmp dword [ebp - 0xc], 4
je 0x105ca04
push 0x102f1a8
mov eax, 0x8007000d
push 1
push eax
push 0x4000000
mov ebx, eax
call fcn.0104ea05
add esp, 0x10
jmp 0x105ca0c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp + 0xc], edi
je 0x105ca1f
cmp dword [ebp - 4], edi
je 0x105ca1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105cfbd
test al, 0x10
jne 0x105cfbd
xor eax, eax
inc eax
jmp 0x105cfbf
xor eax, eax
pop ebp
ret 4
Function at 0x105d11d
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10667c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
call ebx
test eax, eax
jne 0x105d20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x105d209
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x105d182
push edi
mov esi, 0x80070003
push 0x102f420
jmp 0x105d1cb
sub eax, edi
sar eax, 1
push eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01041d21
mov esi, eax
test esi, esi
jge 0x105d1a7
push edi
push 0x102f3fc
jmp 0x105d1cb
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0105d11d
mov esi, eax
test esi, esi
jge 0x105d1dd
lea eax, [ebp - 0x20c]
push eax
push 0x102f3e0
push 1
push esi
push 0x4000000
call fcn.0104ea05
add esp, 0x14
jmp 0x105d20b
push dword [ebp - 0x210]
push edi
call ebx
test eax, eax
jne 0x105d209
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x105d209
test eax, eax
jle 0x105d205
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x105d20b
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0104dc4f
leave
ret 8
Function at 0x401910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401929
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40193d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40195e
cmp esi, eax
jae 0x401937
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401950
cmp esi, eax
jae 0x401937
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408790
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44b098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x45dbd4]
push ebx
push esi
cdq
push edi
mov esi, eax
mov eax, dword [0x45dbd8]
push 2
mov edi, edx
cdq
push 0xbeb5aaf
push edx
push eax
call fcn.004305f0
mov ebx, eax
mov eax, dword [0x45dbcc]
push 2
cdq
push 0xbeb5aaf
push edx
push eax
call fcn.004305f0
push 1
push 0xba7a7bcd
push edi
push esi
add ebx, eax
call fcn.004305f0
push 2
push 0x1b912b5c
push edi
push esi
sub ebx, eax
call fcn.004305f0
mov ecx, dword [0x45dbe0]
mov edx, dword [0x57404c]
imul ecx, ecx, 0x264da184
add ebx, eax
mov eax, dword [0x45dbdc]
imul eax, eax, 0x6d4760f7
add ebx, eax
add ebx, ecx
mov ecx, 0x57404c
mov dword [0x45dbc4], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov esi, dword [0x45dbe8]
push 2
mov eax, esi
cdq
push 0xbeb5aaf
push edx
push eax
mov dword [esp + 0x28], 0
call fcn.004305f0
imul esi, esi, 0x1531b042
mov edi, dword [0x45dbc4]
mov ecx, dword [0x45dbd8]
imul edi, edi, 0xf414a551
sub edi, eax
mov eax, 0x9a168f41
mul dword [0x45dbd0]
shr edx, 0x1f
sub edi, edx
mov eax, 0x45291d0f
imul ecx
mov ecx, dword [0x45dbe4]
imul ecx, ecx, 0x7d86eec7
sar edx, 0x1d
sub edi, esi
mov eax, edx
shr eax, 0x1f
add edi, edx
mov edx, dword [0x45dbe0]
add eax, edi
sub eax, ecx
lea eax, [eax + edx - 0x7672ee00]
mov dword [0x45dbd0], eax
lea ecx, [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00408500
mov eax, dword [0x45dbd0]
push 2
cdq
push 0xbeb5aaf
push edx
push eax
call fcn.004305f0
mov esi, eax
mov eax, dword [0x45dbe4]
push 2
cdq
push 0x1b912b5c
push edx
push eax
call fcn.004305f0
mov ecx, dword [0x45dbcc]
add esi, eax
mov eax, 0x1f64bb9f
mul ecx
imul ecx, ecx, 0x74f4f79a
mov eax, dword [0x45dbc8]
shr edx, 0x1c
imul eax, eax, 0x3903276d
sub esi, edx
mov edx, dword [0x45dbc4]
imul edx, edx, 0x7672ee00
sub esi, eax
add esi, edx
add esi, ecx
mov dword [0x45dbdc], esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x40895d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41bc00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45f640]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41bd02
lea ecx, [esp + 0xc]
call fcn.0041bae0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41bd06
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41bcde
jmp 0x41bca0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041bc00
mov edi, eax
test edi, edi
jne 0x41bd2d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41bca0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bcf5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bd11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043040d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bd3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41bd13
Function at 0x41c220
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41c232
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8